相关疑难解决方法(0)

在Grails 3.1/springloaded中禁用重新加载

我试图在Grails 3.1中禁用自动重新加载/重新编译,因为我想使用JRebel.我发现springloaded相当有限,但更重要的是经常失败

File /Users/engrun/Development/projects/grailsPoc/grails-app/controllers/grailsPoc/HelloController.groovy changed, recompiling...
java.lang.IllegalAccessException: Class org.springsource.loaded.ReloadableType can not access a member of class org.springframework.aop.framework.CglibAopProxy$ClassLoaderAwareUndeclaredThrowableStrategy with modifiers "public"
Run Code Online (Sandbox Code Playgroud)

我已经尝试了各种可用的设置,但是,在运行run-app命令时,实际上都没有禁用重新加载

我试过了

disable.auto.recompile=true
Run Code Online (Sandbox Code Playgroud)

在命令行,GRAILS_OPTS和application.yml中

我试过了

-noreloading
Run Code Online (Sandbox Code Playgroud)

标志,在命令行和GRAILS_OPTS上.

根据文档,这应该有效 https://grails.org/wiki/Auto%20Reloading

答案接受为正确的答案 如何在grails 3.0.0应用程序中禁用重新加载? 也不起作用.

有没有人在Grails 3.1中成功禁用自动重新加载?(并使用JRebel成功配置了Grails 3?)

grails jrebel spring-loaded grails-3.1

7
推荐指数
1
解决办法
838
查看次数

标签 统计

grails ×1

grails-3.1 ×1

jrebel ×1

spring-loaded ×1