在Grails 3.1 / springloaded中禁用重新加载 [英] Disable reloading in Grails 3.1 / springloaded

查看:197
本文介绍了在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中的自动重装?
(并且成功配置了带有JRebel的Grails 3)

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

  grails {
agent {
enabled = false
}
}

build.gradle


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"

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

disable.auto.recompile=true

on command line, GRAILS_OPTS, and in application.yml

I have tried the

-noreloading

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

grails {
   agent {
      enabled = false
   }
}

to build.gradle.

这篇关于在Grails 3.1 / springloaded中禁用重新加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆