在Grails 3.1 / springloaded中禁用重新加载 [英] Disable reloading in Grails 3.1 / springloaded
问题描述
我试图在Grails 3.1中禁用自动重新加载/重新编译,因为我想用JRebel代替。
我发现springloaded相当有限,但更重要的是经常失败,因为
File / Users / engrun / Development / projects /grailsPoc/grails-app/controllers/grailsPoc/HelloController.groovy已更改,重新编译...
java.lang.IllegalAccessException:Class org.springsource.loaded.ReloadableType无法访问类org.springframework.aop的成员.framework.CglibAopProxy $ ClassLoaderAwareUndeclaredThrowableStrategy with modifierspublic
我尝试过所有设置,我有发现可用,但是,在运行run-app命令时,没有一个实际上禁止重新加载。
我试过了
<$ p $在命令行中,GRAILS_OPTS,p> disable.auto.recompile = true
并在application.yml
我试过了
- 无负载
标志,无论是在命令行还是GRAILS_OPTS。
阿科rding to docs,this should have worked
https://grails.org/wiki/Auto% 20Reloading
答案在这里被接受为正确的答案 有没有人真的成功禁用了Grails 3.1中的自动重装? 在3.x应用程序中,您可以禁用Spring Loaded by添加 至 I'm trying to disable automatic reload/recompiling in Grails 3.1 as I would like to use JRebel instead.
I find springloaded rather limited, but more importantly is constantly fails with I have tried all kinds of settings that I have found available, however, none actually disables reloading when running the run-app command I have tried on command line, GRAILS_OPTS, and in application.yml I have tried the flag, both on command line and GRAILS_OPTS. According to docs, this should have worked
https://grails.org/wiki/Auto%20Reloading And the answer accepted as the correct one here
how can I disable reloading in a grails 3.0.0 app?
does not work either. Have anyone actually succeeded in disabling auto-reloading in Grails 3.1?
(And successfully configured Grails 3 with JRebel?) In 3.x apps you can disable Spring Loaded by adding to 这篇关于在Grails 3.1 / springloaded中禁用重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
也不能工作。
(并且成功配置了带有JRebel的Grails 3)
grails {
agent {
enabled = false
}
}
build.gradle
。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"
disable.auto.recompile=true
-noreloading
grails {
agent {
enabled = false
}
}
build.gradle
.