@maohoo Intellij idea 去掉@AutoWired注入bean报错

有时开发项目时,会遇到注入的bean报红,但是并不影响运行,熟悉的朋友会意识到是IDE自身检查级别的原因。

所以需要调整IDE对于@Autowired的检查级别

File — Settings

需要从Error改为Warning

红色标注的位置从ERROR改为Warning

猜你喜欢

转载自blog.csdn.net/maohoo/article/details/79108678
今日推荐