Install the plugin and navigate to http://yourapp/appStatus to see application.properties, server time and locale.
If you want to see more details you can specify the "providers" in resources.groovy
import uk.co.acuminous.app.status.provider.*
import uk.co.acuminous.app.status.AppStatusConfig
beans = {
appStatusConfig(AppStatusConfig) {
providers = [
// !!!DANGER WILL ROBINSON!!!
// The ApplicationConfigProvider will dump the entire
// contents of Config.groovy including datasource.password
// The SystemPropertiesProvider could also make available
// potentially sensitive system variables
properties: new ApplicationPropertiesProvider(),
config: new ApplicationConfigProvider(),
system: new SystemPropertiesProvider(),
locale: new LocaleProvider()
]
}
}
If you want to add your own providers just write something that implements the Provider interface and add it to the providers map.
Finally if you're already using jQuery and jQuery UI you pick an nicer view
beans = {
appStatusConfig(AppStatusConfig) {
providers = [
// blah
]
view = 'tabs'
}
}
No comments:
Post a Comment