You can also explore the use of Spring PropertyOverrideConfigurer. You can reread the properties and reapply them in some polls / schedular bean.
It depends on how these configured beans options use. They can, for example, indirectly cache them somewhere themselves.
source share