Tag Archives: Could not autowire. No beans of

[Solved] intellij IdeaCould not autowire. No beans of xxx

Intelligent idea uses @resource or @autowire to report an error, and a red wavy line appears

Although it doesn’t affect the use, it looks very uncomfortable, so the solution is as follows:

Error message:

                 Could not autowire. No beans of '' type found. less... (Ctrl+F1)  Checks autowiring problems in a bean class.

Solution:

                 Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class removed