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

  问题 在Service层注入Mybatis的Mapper咱们一般会使用@Autowired 自动注入数据库 @Autowired private ProductMapper productMapper; 可是这样Intellij IDEA会显示红色告警,提示不能自动注入。app 当咱们在Controller层注入Service时咱们也常常直接在Filed上使用@Autowired 注解,这时候
相关文章
相关标签/搜索