当前位置: 动力学知识库 > 问答 > 编程问答 >

configuration - 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 config 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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: