Skip to content

Commit 184cd0c

Browse files
committed
Avoid CGLIB requirement in MessageSourceAutoConfiguration
Closes gh-13824
1 parent ceaac98 commit 184cd0c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/context/MessageSourceAutoConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ public MessageSourceProperties messageSourceProperties() {
6464
}
6565

6666
@Bean
67-
public MessageSource messageSource() {
68-
MessageSourceProperties properties = messageSourceProperties();
67+
public MessageSource messageSource(MessageSourceProperties properties) {
6968
ResourceBundleMessageSource messageSource = new ResourceBundleMessageSource();
7069
if (StringUtils.hasText(properties.getBasename())) {
7170
messageSource.setBasenames(StringUtils.commaDelimitedListToStringArray(

0 commit comments

Comments
 (0)