Solve the problem of IntelliJ IDEA Could not autowire. No beans of 'xxxx' type found

Problem: During the development of idea, we will always encounter the prompt Could not autowire. No beans of 'xxxx' type found.. However, there is no error message when looking at the general project. It is only popular in the actual java file. For those with obsessive-compulsive disorder It's very uncomfortable for people who are not (the editor has obsessive-compulsive disorder).

Solution: Reduce the Autowired detection level of the idea and open the configuration of the idea

In Editor >> Inspections >> Spring >> Spring Core >> Code >> Autowiring for Bean Class, change the Serverity level from Error to Warning >> Apply >> OK Check the effect without exception and get it done

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325191953&siteId=291194637