去除idea中@Autowired报红

1.单机idea右下角的小人。 2.点击Configure inspections,找到Spring Core 中的Code下的Autowiring for Bean Class. 3.将Severity对应值如图所示。就可以了。
相关文章
相关标签/搜索