Error creating bean with name 'xxx': Injection of resource dependencies failed solution

question

When running the backend code of the project, the following error occurs:
insert image description here
namely:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘signInController’: Injection of resource dependencies failed;
nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name ‘signInService’: Bean with name ‘signInService’ has been injected into other beans [signInService] 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.

solve

You can see "signInService" and "circular reference", indicating that there should be a problem with the call of signInService, and there is a situation of "calling yourself". Take a closer look at SignInServiceImpl and find that it calls its own interface layer SignInService, so something went wrong.
insert image description here

reward

Don’t panic when you encounter a problem, take a closer look at the problem, see what it is talking about, and you can solve it after calming down~ Show your heart to Sister Yawen ღ( ´・ᴗ・` )

Guess you like

Origin blog.csdn.net/qsbbl/article/details/89403483