|
I would like to add that separating environment (dev, test, accept, production) specific properties like urls, usernames, passwords, etc in a property file instead of the spring config file improves maintainability a lot.
By using the PropertyPlaceholderConfigurer the spring config file remains generic for all environments and the build process takes care of putting the correct propertyfile on the classpath.
I use the mechanism to inject a mock implementation of a DAO for the development environment and for the other environments the "real thing". Just be changing the value of a key in the property file.
|