Etiqueta: java

Several c-lick language editor extensions for laravel-admin based on code-mirror

Several c-lick language editor extensions for laravel-admin based on code-mirror README DEMO (Login using admin/admin) Installation composer require laravel-admin-ext/clike-editor php artisan vendor:publish --tag=laravel-admin-code-mirror 配置 在config/admin.php文件的extensions,加上属于这个扩展的一些配置 'extensions' => [ 'clike-editor' => [ // 如果要关掉这个扩展,设置为false 'enable' => true, // 编辑器的配置 'config' => [...

YUI Compressor is an open source tool that supports the compression of both JavaScript and CSS files. The JavaScript compression removes comments and white-spaces as well as obfuscates local variables using the smallest possible variable name. CSS compression is done using a regular-expression-based…

YUI Compressor is an open source tool that supports the compression of both JavaScript and CSS files. The JavaScript compression removes comments and white-spaces as well as obfuscates local variables using the smallest possible variable name. CSS compression is done using...

Problema con consulta JPQL + JPA + JSF + EJB – java jsf jpa

Pregunta: @Override public Usuario iniciarSesion(Usuario us){ Usuario usuario = null; String consulta; try { consulta = "FROM usuario u WHERE u.usuario = ?1 and u.password =?2"; Query query = em.createQuery(consulta); query.setParameter(1, us.getUsuario()); query.setParameter(2, us.getPassword()); List<Usuario> lista = query.getResultList(); if (!lista.isEmpty()) {...

No encuentra el audio dentro de src – java

Pregunta: Tengo una carpeta “audios” dentro de “src”, para cuando construya el proyecto pueda reproducir los audios. Intento abrir el audio pero me salta “java.lang.NullPointerException” public void playFalloVibrador1Reponer() { try { InputStream path; path = getClass().getResourceAsStream("/audios/vibradores/reponer/1.wav"); s1v1 = AudioSystem.getClip(); s2v1.open(AudioSystem.getAudioInputStream(path)); s1v1.start();...