当前位置: 首页 > >

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

发布时间:

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 中的参数路径没有写正确



友情链接: