how can I disable reloading in a grails 3.0.0 app?

一个人想着一个人 提交于 2019-12-08 17:43:24

问题


It appears that the spring reloading causes errors with JDK 8u40 in Grails 3.0.0.M2. Can I disable the reloading in development mode? Is there a key to set in the build.gradle or in the application.yml?


回答1:


Not sure if it helps in above case. I use below over grails 2.3.8 to disable auto compile.

grails -Dserver.port=8090 -Dserver.env=development -Denable.jndi=true -Ddisable.auto.recompile=true run-app

where

disable.auto.recompile=true

disables autocompile and autoreload of changes .

server.env - the environment in which you want the application to run.

server.port - port on which application will run

enable.jndi - to enable jndi support

You may set these variables in Gradle build.




回答2:


See this answer.

In 3.x apps you can disable Spring Loaded by adding

grails {
   agent {
      enabled = false
   }
}

to build.gradle.



来源:https://stackoverflow.com/questions/28855946/how-can-i-disable-reloading-in-a-grails-3-0-0-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!