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.
Defining messageSource bean with @bean in a @configuration class causes the following exception when you try to inject the bean anywhere.
Adding
MessageSource.classto the auto-configuration exclusions does not have any effect.