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
public MessageSource messageSource() {
MessageSourceProperties properties = messageSourceProperties();
public MessageSource messageSource(MessageSourceProperties properties) {
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
if (StringUtils.hasText(properties.getBasename())) {
messageSource.setBasenames(StringUtils.commaDelimitedListToStringArray(

Loading…
Cancel
Save