This plugin provides your application the ability to change the config properties without restarting the application. The values in Config.groovy are persisted in database and a set of interfaces manages frequently-used properties.
grails install-plugin dynamic-db-config-property
This plugin gives your application the ability to change the config properties without restarting the application. The values in Config.groovy are persisted in database when application is run-for the first time after installing the plugin.Meanwhile, for one Grails Project, usually more than 50 properties in config.groovy, but most them are generated by Grails framework. Indeed, there is only a small portion of properties in your config.groovy that is needed to maintain later on. What we are concerned about is the frequently-used properties. Therefore, there is a interface to help you to simply tick boxes to move the properties you want to maintain forwards to save into the database. Then all management operations such as CRUD are in the management page. More importantly, only those properties saved into DB are synchronized with GrailsApplication.config object, which is quite handy for you to focus on managing these useful ones.It is sometimes true that you could not restart server to add a new property when the server is busy running. After using the plugin, it works even you only create the new property in Database and have not added in Config.groovy yet.In addition, in the Property Status page you could check the values in Config.groovy, the values in DB and the currently active values on running.Features
- Dynamic (on-the-run) changes to your Config properties.
- Keeping latest values of Config properties from Database in the GrailsApplication.config object at the run-time.
- Supports various data types as values for the config property (Integer, Boolean, String, Float, Long, Double).
- In the 'Property Status' page you could compare the previously default values in Config.groovy and the currently active values on running.
- All views are generated by your own layout main.gsp.
- The plugin contains a single domain class named ConfigProperty and a set of controller's methods and views.