Announcement Announcement Module
Collapse
No announcement yet.
properties file Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • properties file

    Hi,

    I would like to use the properties file like the following

    Properties prop = new Properties();

    prop.load(new FileInputStream("location of my properties file"));

    prop.getProperty("name");

    I would like to be able to use spring to inject the properties file path so I do not need to have the line

    prop.load(new FileInputStream("location of my properties file"));

    Thanks

    Chris

  • #2
    PropertiesFactoryBean?

    Comment

    Working...
    X