Sep 29th, 2004, 04:34 AM
Default properties and inversion of control
i need to place default properties accessible by some controllers. In fact it is default properties for the user (nb of item by page...) actually placed in application.properties file.
What is the best way to do this : in a manager and properties passed by the classical applicationContext.xml ?
Sep 29th, 2004, 05:37 AM
If there are a few poperties you can set them directly using IoC from application context XMl file.
If there are more you can load them yourself, locating the file as a resource. See section 3.11.3. "Using resources within Spring" in Spring's reference document and the "org.springframework.core.io" package in Javadocs.