idea工程中,有时候会出现Could not autowire. No beans of 'xxxx' type found的错误提示,虽然不影响编译但是在强迫症眼中多多少少有些不舒服,在idea2021中的其中一种解决方法:
降低Autowired检测的级别,Settings --> Editor --> Inspections --> Incorrect injection point autowiring in Spring bean components,把隔离级别从Error变成Warning