user12121
user12121

Reputation: 131

Springframework PropertyPlaceholderConfigurer

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

Answers (2)

Dave Newton
Dave Newton

Reputation: 160321

They're loaded on startup.

But making them reloadable is completely doable.

Upvotes: 8

Barend
Barend

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

Related Questions