使用springboot整合mybatis时出现Could not autowire. No beans of 'UserMapper' type found的解决办法

在整合springboot和mybatis时,service层出现Could not autowire. No beans of ‘UserMapper’ type found.的错误。 将@Autowired修改成@Resource即可解决。 效果如下图:
相关文章
相关标签/搜索