meticoeus / spring-icu

Provides the ICU4J's message formatting features, such as named arguments support, flexible plural formatting, rule based number format, date interval formats
Apache License 2.0
2 stars 4 forks source link

Bean name messageSource causes Exception in Spring Boot #1

Open meticoeus opened 8 years ago

meticoeus commented 8 years ago

Defining messageSource bean with @Bean in a @Configuration class causes the following exception when you try to inject the bean anywhere.

org.springframework.beans.factory.BeanCurrentlyInCreationException: 
Error creating bean with name 'messageSource': 
Requested bean is currently in creation: 
Is there an unresolvable circular reference?

Adding MessageSource.class to the auto-configuration exclusions does not have any effect.