Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring Property reading  RSS feed

Shardul Vyawahare
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I m using the Spring 3 in my project. Currently I am reading the property files using java.util.Properties class so every time code runs. It reads the necessary property file every time.
I want the way out that I will read the property files once. So I was thinking of creating POJO for every property file and initiating POJO in Application Context. This will work fine but problem is if I changed the property file at run time it should come in affect without restarting tomcat . is it possible in Spring that property file will be read only if it changed otherwise it will use existing loaded context ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!