Vote count:
0
I am using PropertyPlaceholderConfigurer to load the property file using spring.
<bean id="placeholderProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>file:${applicationProperties}</value>
</list>
</property>
</bean>
I have override this PropertyPlaceholderConfigurer to store all the key value pair in a Map. Now the requirement is whenever this property file is updated and saved on the file system, then this map should get updated with new values at run-time.
How to achieve this requirement?
asked 1 min ago
Spring property file loader: how to update properties at runtime, whenever they are updated in file?
Aucun commentaire:
Enregistrer un commentaire