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:

  1. beans {
  2. bookService {
  3. webServiceURL = "http://www.amazon.com"
  4. }
  5. }

The general format is:

  1. <<bean name>>.<<property name>> = <<value>>

The same configuration in a Java properties file would be:

  1. beans.bookService.webServiceURL=http://www.amazon.com