Could not autowire. No beans of 'SubjectMapper' type found problem solution

In the spring project of Idea, the error message of Could not autowire. No beans of 'xxxx' type found is often encountered. However, there is no problem with compiling and running the program, and this error message will not affect it. But the red error message is more or less uncomfortable in the eyes of some obsessive-compulsive programmers.

Solution: file---setting---inspections---spring core --- core --- modify to Warning + In All Scopes

 

Guess you like

Origin blog.csdn.net/m0_63270506/article/details/126029513