Spring boot application.yml properties at runtime

In spring boot app, I can bind properties from application.yml to bean fields using @ConfigurationProperties annotation.

Is it possible to update these properties in application.yml at runtime and map them to a bean? If yes. How to do it?

I've gotten this to work in the past using ReloadableResourceBundleMessageSource

+3


source to share


1 answer


Spring Cloud Config

does this and more. In particular, check out the sample application .



+2


source







All Articles