16.6 Property Override Configuration - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith, Lari Hotari
Version: 2.3.8
16.6 Property Override Configuration
Grails supports setting of bean properties via configuration. This is often useful when used in combination with externalized configuration.You define abeans
block with the names of beans and their values:beans {
bookService {
webServiceURL = "http://www.amazon.com"
}
}
[bean name].[property name] = [value]
beans.bookService.webServiceURL=http://www.amazon.com