当生成启用了 Atmosphere 的新应用程序时,一切似乎都工作正常。但是,当将应用程序打包在可执行的 war 中时(如 jhipster 主页上所述),应用程序无法正确加载。
它开始提示 Atmosphere 注释扫描无法扫描可执行 jar 内的 heaven.jar 中的注释,并出现 MalformedURLException:
[警告] org.atmosphere.cpr.DefaultAnnotationProcessor - 无法扫描注释 java.net.MalformedURLException:索引 11 处不透明部分中存在非法字符:jar:file:C:\Development\test\target\test-0.1-SNAPSHOT.war!/WEB-INF/lib/atmosphere-runtime-2.1.0 .jar!/org/atmosphere/annota 化/
我只使用 Atmosphere enablef 生成了一个新项目,将其打包并尝试运行可执行的 war。我做错了什么或者我错过了什么吗?
谢谢
最佳答案
该问题已通过更新 Atmosphere 2.2.2 得到解决。
RequiresUnpack 不是必需的,有关更多信息,请查看 jhipster-generator 上的问题:https://github.com/jhipster/generator-jhipster/issues/471
关于java - JHipster 可执行 war 无法与 Atmosphere 结合执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24117886/