Announcement Announcement Module
Collapse
No announcement yet.
loading PropertyPlaceholderConfigurer property files from classpath Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

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

    Comment


    • #3
      That worked, thanks a lot!

      Comment


      • #4
        The syntax follows Spring's regular conventions for location Strings.

        Comment

        Working...
        X