2022年1月版IntelliJ Idea报错Could not autowire. No beans of ‘xxxx‘ type found的错误

简介: 2022年1月版IntelliJ Idea报错Could not autowire. No beans of ‘xxxx‘ type found的错误

1.问题

首先我拉取代码后,代码文件中报了一个错误,

错误截图;

2解决思路

idea能正常运行与启动,但在提交代码时会有麻烦,

因此我在其他博客中寻找解决方案:

但我在idea中没有找到此内容 Autowiring for Bean Class

按照博客内容我没有找到

我考虑是否是新版idea的问题

因此照着之前的博客进行推断,将博客中修改前与修改后进行翻译,逐个找到翻译类似的将它的错误改成警告,结果成功

希望其他的小伙伴可以避免跳坑。

3.解决步骤

以下为新的解决步骤:

1.打开idea的 File --> settings -->点击Editor --> Code Style --> inspections

2.输入Autowiring

3.找到 incorrect injection point autowiring in Spring bean compoments

4.将Error 改成Warnging

5.点击Apply

6.点击Ok,等待几秒钟或者重启就没问题了

相关文章
|
1月前
|
IDE Oracle Java
day4:JDK、IntelliJ IDEA的安装和环境变量配置
【7月更文挑战第4天】🏆本文收录于「滚雪球学Java」专栏,专业攻坚指数级提升,希望能够助你一臂之力,帮你早日登顶实现财富自由🚀;同时,欢迎大家关注&&收藏&&订阅!持续更新中,up!up!up!!
78 0
|
8天前
|
开发工具 Android开发 git
解决Idea报错出现Git is not installed
解决Idea报错出现Git is not installed
23 2
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found:
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found
|
27天前
|
Java
关于idea报错:Cannot determine path to 'tools.jar' library for 17 (E:\java-jdk\jdk17)的解决办法
关于idea报错:Cannot determine path to 'tools.jar' library for 17 (E:\java-jdk\jdk17)的解决办法
|
1月前
|
网络协议 安全 Linux
在IntelliJ IDEA中使用固定公网地址远程SSH连接服务器环境进行开发
在IntelliJ IDEA中使用固定公网地址远程SSH连接服务器环境进行开发
50 2
|
2月前
|
IDE Java Scala
IntelliJ IDEA 2023.3 最新变化2
IntelliJ IDEA 2023.3 最新变化
49 1
|
1月前
|
Java
idea启动java服务报错OutOfMemoryError: GC overhead limit exceeded解决方法
idea启动java服务报错OutOfMemoryError: GC overhead limit exceeded解决方法
261 0
|
1月前
|
缓存 Java Maven
IntelliJ IDEA中无法加载jar包导致出现“cannot resolve symbol...”问题的解决
IntelliJ IDEA中无法加载jar包导致出现“cannot resolve symbol...”问题的解决
|
1月前
|
存储 Oracle Java
Java面试题:描述如何使用Eclipse或IntelliJ IDEA进行Java开发?
Java面试题:描述如何使用Eclipse或IntelliJ IDEA进行Java开发?
28 0
|
2月前
|
监控 IDE Java
探索 IntelliJ IDEA 中 Spring Boot 运行配置选项及其作用
探索 IntelliJ IDEA 中 Spring Boot 运行配置选项及其作用
97 0