|
|
@ -64,8 +64,7 @@ public class MessageSourceAutoConfiguration {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
public MessageSource messageSource() {
|
|
|
|
public MessageSource messageSource(MessageSourceProperties properties) {
|
|
|
|
MessageSourceProperties properties = messageSourceProperties();
|
|
|
|
|
|
|
|
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
|
|
|
|
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
|
|
|
|
if (StringUtils.hasText(properties.getBasename())) {
|
|
|
|
if (StringUtils.hasText(properties.getBasename())) {
|
|
|
|
messageSource.setBasenames(StringUtils.commaDelimitedListToStringArray(
|
|
|
|
messageSource.setBasenames(StringUtils.commaDelimitedListToStringArray(
|
|
|
|