I have a spring integration web application that imports a bunch of properties file like so:
<context:property-placeholder location="classpath*:*.properties" />
Now I am converting it to a spring boot application and I am importing the the properties in using the @PropertySource in the config class. I am also looking at the spring cloud config server for a future state project. So my question is this, all of the beans that need to be refreshed when the properties file changes need @RefreshScope but there is no equivalent attribute in the xml at this point that I am aware of. I thought I could use scope="refresh" the application throw an error saying "refresh" is not a valid scope. So how do I manage refreshing the xml defined beans when the properties file changes.
I'm thinking I could try and capture the event and then do a context.refresh(); but is their a better way to do this that is already built into spring?