This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
No announcement yet.
Refresh PropertyPlaceholder data at runtimePage Title Module
Is it possible to reload / refresh the property files that are configured in the PropertyPlaceholder or is it necessary to refresh the complete application context (using ConfigurableApplicationContext) instead?
I think you will need to refresh the complete application context, because the properties from the PropertyPlaceHolderConfigurer are set in the beans in the configuration. After that a lot of initialization can happen (eg. afterPropertiesSet() call in InitializingBean, which may set other properties in the beans).
Just reloading the PropertyPlaceHolderConfigurer wouldn't change those properties I guess.