PropertyPlaceholderConfigurer vs ReloadableResourceBundleMessageSource

A google search on how to set up a properties file in Spring 3, and I got a lot of different answers. I found that ReloadableResourceBundleMessageSourceu PropertyPlaceholderConfigurercan be used to get properties from property files. Can someone explain the difference between the two?

+4
source share
2 answers

PropertyPlaceholderConfigurer

We use PropertyPlaceholderConfigurerit when we need to load some property files whose properties are used in applicationcontext.xml spring. We can use properties directly using JSTL expressions.

ReloadableResourceBundleMessageSource

ReloadableResourceBundleMessageSource, applicationcontext.xml. , ReloadableResourceBundleMessageSource, applicationcontext.xml

+1

PropertyPlaceholderConfigurer , @value.

ResourceBundleMessageSource, (i18n) , , jsp direct , bean .

+1

All Articles