We recently changed the way how we load configuration files in a Grails project. Normally we to use the .properties file format, but this has some serious disadvantages. You cannot deal with all Grails Mail settings in the configuration file You cannot use the log4j DSL to extract the logging [...]
Currently Browsing
Posts Tagged ‘ configuration ’
25 november
Posted in
Groovy and Grails, Programming
Loading external Configuration files in a Grails application
The use of ‘Config.groovy’ as a placeholder for configuration settings is nice, but not always sufficient. The ‘Config.groovy’ file will get compiled and packaged inside the WAR file you are creating. If you want to externalize the configuration and have a need to configure settings outside the deployed (WAR file) [...]