1.针对第一种原因,解决办法是:降低Autowired检测的级别,将Severity的级别由之前的error改成warning或其它可以忽略的级别。
2.File-Project Structure 页面 Facets下删掉 Spring(直接右键Delete)。并不会降低安全性!!因为创建项目的时候,都是先创建空项目再创建web moduele(你想直接创建web project也可以),一般不会使用spring组件。都是自己配置的。
IntelliJ Idea解决Could not autowire. No beans of 'xxxx' type found的错误提示
最新推荐文章于 2024-05-13 23:50:42 发布