Last active
December 28, 2015 03:19
-
-
Save annagapuz/7434781 to your computer and use it in GitHub Desktop.
Grails externalized configuration files (grails.config.locations)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Grails externalized configuration files: | |
If you want to include a config groovy class, you have to include it as an object in the config location list. | |
Despite the comments saying this: | |
// grails.config.locations = [ "classpath:${appName}-config.properties", | |
// "classpath:${appName}-config.groovy", | |
// "file:${userHome}/.grails/${appName}-config.properties", | |
// "file:${userHome}/.grails/${appName}-config.groovy"] | |
... it should actually look like this: | |
grails.config.locations = [ | |
"classpath:${appName}-config.properties", | |
AuditConfig | |
] | |
... where AuditConfig.groovy is a class in my conf folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment