Avoid CGLIB requirement in MessageSourceAutoConfiguration

Closes gh-13824
pull/13817/merge
Stephane Nicoll 6 years ago
parent ceaac98847
commit 184cd0c708

@ -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(

Loading…
Cancel
Save