Grails How To Split Config.groovy

Do you like this?

Summary:
This trick shows you how to split Config.groovy to many files.


Content:

Config.groovy

grails.config.locations = [ your_package.AppConfig ]
grails-app/conf/your_package/AppConfig.groovy
package your_package
yourapp.key1= "value1"
Console
print grailsApplication.config.yourapp.key1

 
comments powered by Disqus