我如何禁用在grails 3.0.0应用程序中重新加载? [英] how can I disable reloading in a grails 3.0.0 app?

查看:114
本文介绍了我如何禁用在grails 3.0.0应用程序中重新加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看起来,在Grails 3.0.0.M2中,Spring重装会导致JDK 8u40出现错误。
我可以在开发模式下禁用重新加载吗?
有没有在build.gradle或application.yml中设置的键?

解决方案

不知道是否它有助于在上述情况下。

  grails -Dserver.port = 8090 -Dserver.env = development我在Grails 2.3.8下面使用禁用自动编译。 -Denable.jndi = true -Ddisable.auto.recompile = true run-app 

其中


disable.auto.recompile = true

禁用自动编译和自动重载更改。

server.env - 您希望应用程序运行的环境。



server.port - 应用程序将运行的端口



您可以在Gradle构建中设置这些变量。 p>

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?

解决方案

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.

这篇关于我如何禁用在grails 3.0.0应用程序中重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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