Results 1 to 4 of 4

Thread: loading PropertyPlaceholderConfigurer property files from classpath

  1. #1
    Join Date
    May 2005
    Location
    San Jose, CA, US
    Posts
    59

    Question loading PropertyPlaceholderConfigurer property files from classpath

    Hi,

    Is there a way to load the property files specified for a PropertyPlaceholderConfigurer from the classpath?

    Thanks,
    Marius

  2. #2
    Join Date
    Aug 2004
    Location
    San Diego
    Posts
    6

    Default

    Usually I just use classpath:<path>/<propertyFile> as the value for the file name/location.

    ex. <value>classpath:mypackage/myproperties.properties</value>
    ex. <value>classpath:mydir/myproperties.properties</value>

  3. #3
    Join Date
    May 2005
    Location
    San Jose, CA, US
    Posts
    59

    Smile

    That worked, thanks a lot!

  4. #4
    Join Date
    Aug 2004
    Location
    San Mateo, CA
    Posts
    1,265

    Default

    The syntax follows Spring's regular conventions for location Strings.
    Rod Johnson - GM, SpringSource Division, VMware
    http://www.springsource.com
    Spring From the Source

Posting Permissions

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