Thursday, February 26, 2015

Spring MessageSource

Read message source without injecting it or using spring context


ReloadableResourceBundleMessageSource messageSource = new ReloadableResourceBundleMessageSource();
messageSource.setDefaultEncoding("UTF-8");
messageSource.setBasename("messages");


Use message source as you want now on.

No comments:

Post a Comment