Results 1 to 2 of 2

Thread: Default properties and inversion of control

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    1,104

    Default

    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
  •