Is there a way to update Spring bean dynamically if Spring beans configuration changes?
eg. Suppose I have a Spring bean with the boolean property x
, and Spring beans is true
when the application starts.
So, Spring creates a bean with property x
set to true.
Is there a way that if I change the property to x
(while the application is running), the property will be updated, for example. to false
?
source share