How to reload properties with Spring?

前端 未结 6 915
甜味超标
甜味超标 2020-12-01 12:44

I\'m using properties file with Spring 3. When Spring initializes its contex it loads the properties file and puts it in all beans with @Value annotation.

I want to

6条回答
  •  一个人的身影
    2020-12-01 13:20

    While some here are suggesting using an external way to use properties(external to Spring's own way of using property files). This answer is exactly what you are looking for https://stackoverflow.com/a/52648630/39998 Hot Reloading properties in Spring Boot and Java EE.

提交回复
热议问题