其他分享
首页 > 其他分享> > 使用@Autowire注解代码飘红问题的解决方案

使用@Autowire注解代码飘红问题的解决方案

作者:互联网

1. 使用@Autowire注解代码飘红问题
在这里插入图片描述
解决方案:如果不是依赖没有导入,那么就是IDEA的代码检查机制在作妖。

File–>Settings–>输入 inspections 进行搜索,然后输入 autowired 进行搜索,将idea的代码检查改为Warning即可

在这里插入图片描述

标签:Autowire,飘红,解决方案,代码,搜索,注解
来源: https://blog.csdn.net/single_0910/article/details/112000407