Search code examples
javaspringpropertiesinternationalizationresourcebundle

Spring: can ResourceBundleMessageSource be configured to load properties in xml format


As you may know, properties are usually written in files in key=value format but can also be written in XML format.

The question is if (and how) can Spring's ResourceBundleMessageSource be configured to load properties in XML format.


Solution

  • Maybe you could try ReloadableResourceBundleMessageSource. Seems it does support XML