Created
December 29, 2018 16:18
-
-
Save linhvovn/5befaa341164c535007fb0f69a08b159 to your computer and use it in GitHub Desktop.
This file contains 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
@Bean | |
public MessageSource messageSource() { | |
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource(); | |
messageSource.setBasenames("languages/messages"); | |
messageSource.setDefaultEncoding("UTF-8"); | |
return messageSource; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment