开发者

Grails - Externalized Configuration Restart

开发者 https://www.devze.com 2023-03-18 10:30 出处:网络
If I external开发者_StackOverflowize part of my Grails configuration, must I restart my container for the change to be found? Is there any workaround to this if so? Thanks.No, there\'s no automatic wa

If I external开发者_StackOverflowize part of my Grails configuration, must I restart my container for the change to be found? Is there any workaround to this if so? Thanks.


No, there's no automatic watch for changes to external config files. There's a good solution here that involves making a controller request to trigger a reload: http://jetlet.blogspot.com/2011/02/reload-external-config-file-dynamically.html

There's also this plugin, which looks like it hasn't been updated in a long time and may not work: http://www.grails.org/plugin/reloadable-config


Chiming in late here, but there's also

http://www.grails.org/plugin/external-config-reload

0

精彩评论

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

关注公众号