Intellij IDEA 如何去掉 @Autowired 注入警告

  問題 在Service層注入Mybatis的Mapper咱們一般會使用@Autowired 自動注入數據庫 @Autowired private ProductMapper productMapper; 可是這樣Intellij IDEA會顯示紅色告警,提示不能自動注入。app 當咱們在Controller層注入Service時咱們也常常直接在Filed上使用@Autowired 註解,這時候
相關文章
相關標籤/搜索