Skip to content

Instantly share code, notes, and snippets.

@sunggun-yu
Created February 7, 2013 15:57
Show Gist options
  • Save sunggun-yu/4731865 to your computer and use it in GitHub Desktop.
Save sunggun-yu/4731865 to your computer and use it in GitHub Desktop.
Using external message resource file in Spring ReloadableResourceBundleMessageSource.
<!-- MessageSource -->
<!-- /usr/local/conf/app/messages/messages_en_US.properties -->
<beans:bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<beans:property name="basename">
<beans:value>file:/usr/local/conf/app/messages/messages</beans:value>
</beans:property>
<beans:property name="cacheSeconds" value="600" />
</beans:bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment