报如下错误,大致是没有找到Mapper
Field userMapper in com.xxx.service.Impl.UserServiceImpl required a bean of type ‘com.xxx.mapper.UserMapper’ that could
not be found.Consider defining a bean of type
‘com.xxx.mapper.UserMapper’ in your configuration.
Field userMapper in com.xxx.service.Impl.UserServiceImpl
required a bean of type ‘com.xxx.mapper.UserMapper’ that could
not be found.
然后百度了一圈发现提供的办法并没有解决,且很多雷同。
最后,发现pom里导入的包需要用MyBatis提供适配SpringBoot的
版权声明:本文为A_hxy原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。