IDEA中@Autowired无法实现注入的Error警告

如上图所示,在IDEA中显示了ERROR错误,调整方式如下:

File —> Settings —> Editor —> Inspections —> Spring —> Spring Core —> Code

—> Autowiring for Bean Class,将Error 改为Warning,就可以了。

猜你喜欢

转载自www.cnblogs.com/Eric-F/p/9992204.html
今日推荐