19.5 Property Override Configuration
Grails supports setting of bean properties via configuration.
You define a beans
block with the names of beans and their values:
beans {
bookService {
webServiceURL = "http://www.amazon.com"
}
}
The general format is:
<<bean name>>.<<property name>> = <<value>>
The same configuration in a Java properties file would be:
beans.bookService.webServiceURL=http://www.amazon.com