-
Sep 29th, 2004, 04:34 AM
#1
Default properties and inversion of control
Hi,
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 ?
Thanks,
Fabien.
-
Sep 29th, 2004, 05:37 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules