在 Grails 3.1/springloaded 中禁用重新加载 [英] Disable reloading in Grails 3.1 / springloaded
问题描述
我想在 Grails 3.1 中禁用自动重新加载/重新编译,因为我想改用 JRebel.我发现 springloaded 相当有限,但更重要的是经常失败
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
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-app 命令时,实际上没有一个会禁用重新加载
I have tried all kinds of settings that I have found available, however, none actually disables reloading when running the run-app command
我试过了
disable.auto.recompile=true
在命令行、GRAILS_OPTS 和 application.yml 中
on command line, GRAILS_OPTS, and in application.yml
我已经试过了
-noreloading
在命令行和 GRAILS_OPTS 上的标志.
flag, both on command line and GRAILS_OPTS.
根据文档,这应该有效https://grails.org/wiki/Auto%20Reloading
这里的答案是正确的如何在 grails 中禁用重新加载3.0.0 应用程序?也不起作用.
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.
有人真的成功地在 Grails 3.1 中禁用了自动重新加载吗?(并成功地使用 JRebel 配置了 Grails 3?)
Have anyone actually succeeded in disabling auto-reloading in Grails 3.1? (And successfully configured Grails 3 with JRebel?)
推荐答案
在 3.x 应用程序中,您可以通过添加来禁用 Spring Loaded
In 3.x apps you can disable Spring Loaded by adding
grails {
agent {
enabled = false
}
}
到build.gradle
.
这篇关于在 Grails 3.1/springloaded 中禁用重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!