gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 10:15:59 27 4
gpt4 key购买 nike

我试图在 Grails 3.1 中禁用自动重新加载/重新编译,因为我想改用 JRebel。
我发现 Spring 加载相当有限,但更重要的是不断失败

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 命令时,实际上没有一个会禁用重新加载

我试过了
disable.auto.recompile=true

在命令行、GRAILS_OPTS 和 application.yml 中

我已经尝试过
-noreloading

标志,在命令行和 GRAILS_OPTS 上。

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

答案在这里被接受为正确的
how can I disable reloading in a grails 3.0.0 app?
也不起作用。

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

最佳答案

在 3.x 应用程序中,您可以通过添加禁用 Spring Loaded

grails {
agent {
enabled = false
}
}

build.gradle .

关于grails - 在 Grails 3.1/springloaded 中禁用重新加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35226076/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com