在整合springboot和mybatis时,service层出现Could not autowire. No beans of ‘UserMapper’ type found.的错误。
将@Autowired修改成@Resource即可解决。
效果如下图:
使用springboot整合mybatis时出现Could not autowire. No beans of 'UserMapper' type found的解决办法
最新推荐文章于 2024-07-29 15:37:19 发布