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