Skip to content

Bean name messageSource causes Exception in Spring Boot #1

@meticoeus

Description

@meticoeus

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions