springboot整合mybatis mapper注入时报错could not autowire,几种解决方案

问题提出 springboot整合mybatis mapper注入时,报错could not autowire(IDE为IntelliJ IDEA): 虽然红线标出报错,但运行和使用没有问题。看着红线报错不舒服,搜索得到了几种方案,整合在一起。 问题解决 1. 使用@Resource注解替换@Autowired 如下: @Autowired与@Resource的区别(@Autowired和@Res
相关文章
相关标签/搜索