Skip to content

Instantly share code, notes, and snippets.

@linhvovn
Created December 29, 2018 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linhvovn/5befaa341164c535007fb0f69a08b159 to your computer and use it in GitHub Desktop.
Save linhvovn/5befaa341164c535007fb0f69a08b159 to your computer and use it in GitHub Desktop.
@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