Update field annotated with @Value in runtime
问题 Let's imagine we have such a component in Spring: @Component public class MyComponent { @Value("${someProperty}") private String text; } If we define the property placeholder: <context:property-placeholder location="classpath:myProps.properties"/> And myPropos.properties contains the value for someProperty the value will be injected to the text field when the context is initialized. That's quite simple and easy. But let's say that I have a service that enables user to change the value of the