开发者

grails: where can utility code be placed, that doesn't cause a container restart?

I'm wondering where utility code can be placed, that doesn't cause a restart of container. Updating controllers doesn't cause a container restart & the updated code is available to run (great), but I wanted a more general library/utility place for my utility code.

Putting the code in /utils or in src/groovy does cause a restart on save, at least using Intellij, but I imagine this is the same regardless of where Grails is developed.

Perhaps you have some general info/insights 开发者_JAVA技巧on how Grails does this -- includes new code but doesn't need to restart the container, if that's only special to controllers?

(v. 1.3.7)


You're out of luck out of the box unless you want to use 2.0. The alternative is to turn off auto-reloading and add in something like jrebel. See this blog for details.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜