开发者

Configure different versions of the same Grails application

开发者 https://www.devze.com 2023-02-04 03:55 出处:网络
By default Grails uses the following locations to look for config files: \"classpath:${appName}-config.properties\",

By default Grails uses the following locations to look for config files:

"classpath:${appName}-config.properties",
"classpath:${appName}-config.groovy",
"file:${userHome}/.grails/${appName}-config.properties",
"file:${userHome}/.grails/${appName}-config.groovy"

But this leads to conflicts if two (or more) versions of the same application (with the same app name) are runing in the same servlet container. I need this for testing.

How can I use different c开发者_如何学JAVAonfig files for two Grails applications with the same name in the same servlet container?


Maybe by Externalize Your Grails Configuration. Here is a good link : externalize grails configuration

I hope this help.

0

精彩评论

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