Created
December 2, 2012 10:46
-
-
Save krams915/4188140 to your computer and use it in GitHub Desktop.
ApplicationContext JavaConfig snippet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Provides internationalization of messages | |
| @Bean | |
| public ResourceBundleMessageSource messageSource() { | |
| ResourceBundleMessageSource source = new ResourceBundleMessageSource(); | |
| source.setBasename("messages"); | |
| return source; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment