在左上角的file中,点击进入Settings:
在进入以下路径:Editor/Inspections
在Inspections里面找到Spring/Spring Core/Code:
将code里面的:Autowing for Bean Class 取消打钩;
这样就可以使得注入的对象不会再有红色波浪线。
在左上角的file中,点击进入Settings:
在进入以下路径:Editor/Inspections
在Inspections里面找到Spring/Spring Core/Code:
将code里面的:Autowing for Bean Class 取消打钩;
这样就可以使得注入的对象不会再有红色波浪线。