Announcement Announcement Module
Collapse
No announcement yet.
Default properties and inversion of control Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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.

    Comment

    Working...
    X