Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circular reference in userService #950

Open
fbalicchia opened this issue Dec 6, 2017 · 0 comments
Open

Circular reference in userService #950

fbalicchia opened this issue Dec 6, 2017 · 0 comments

Comments

@fbalicchia
Copy link

Hi,
tatamiUserDetailsService introduction in MailService has created a circular reference.
The problem can be produced using unit test in service module.
Here a part of exception

Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'mailService': Bean with name 'mailService' has been injected into other beans [userService] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' flag turned off, for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant