您的位置:首页 > 编程语言 > Java开发

springBoot启动错误:Field categoryMapper in xxx.xxx.service.impl.CategoryServiceImpl required a bean of

2020-06-04 07:08 645 查看

springBoot启动错误:Field categoryMapper in com.leyou.service.impl.CategoryServiceImpl required a bean of type ‘com.leyou.mapper.CategoryMapper’ that could not be found.


从字面意思好像是mapper有问题

后来发现在引导类中的@MapperScan 中的参数路径没有写正确

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐