Results 1 to 4 of 4

Thread: System property in spring configurations file.

  1. #1
    Join Date
    Jan 2009
    Posts
    1

    Default System property in spring configurations file.

    Hi to all!

    How can I set system property in spring configurations file?

    Alesia

  2. #2
    Join Date
    Aug 2004
    Posts
    13

    Default Status

    Quote Originally Posted by Alesia View Post
    Hi to all!

    How can I set system property in spring configurations file?

    Alesia
    Any solution to this?

  3. #3
    Join Date
    Mar 2009
    Posts
    8

    Default

    Use a PropertyPlaceholderConfigurer. This allows you to keep your enviroment-specific properties defined separately, yet use them in the main Spring configuration.

    The ${propertyKeyword} construct allows you to specify the property defined in a separate properties file.

  4. #4
    Join Date
    Mar 2009
    Posts
    8

    Default

    Quote Originally Posted by sachinambe View Post
    Use a PropertyPlaceholderConfigurer. This allows you to keep your enviroment-specific properties defined separately, yet use them in the main Spring configuration.

    The ${propertyKeyword} construct allows you to specify the property defined in a separate properties file.
    This is described here

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •