Configure different versions of the same Grails application
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.
精彩评论