on-internet
← Community

Spring how to reload the values from application.properties at runtime

Stack Overflow ·

In my Spring application I load application.properties file from outside the application e.g. /user/home/properties/application.properties. The values in the file are injected via @Value annotation in the beans. The new requirement I've is to be able to change values in application.properties file and reload (or reinject) the new values in the beans. Is something like this possible in Spring 3.2?

Comments

Sign in or sign up to comment and upvote.

No comments yet.