Reputation: 131
Have question on PropertyPlaceholderConfigurer. If properties file is changed, will spring loads it dynamically or do we have to start app for the changes to take effect?
Upvotes: 4
Views: 4850
Reputation: 160321
They're loaded on startup.
But making them reloadable is completely doable.
Upvotes: 8
Reputation: 17419
The properties are resolved and injected into your beans (only) during application startup. The PropertyPlaceholderConfigurer does not monitor and reload the configuration file.
Upvotes: 2