How to reinitialize a Spring Bean?
You have three options to update singleton bean in spring context, you can chose one suitable for your use case: Reload method In the Bean Create a method in your bean which will update/reload its properties. Based on your trigger, access the bean from spring context, and then call the reload method to update bean … Read more