A component required a bean of type 'com.dmsd.omo.xxt2.mapper.ComScoreMapper' that could not be found.
报错原因:
1、查看是否引入@Controller、@Mapper、@Service等生成bean的注解
2、查看引入的注解是否正确:
如上图存在两个重名的Mapper注解,我们用的是上面这个。
类似的重名注解(Param)还存在Mapper层中:注意选择正确的注解。
A component required a bean of type 'com.dmsd.omo.xxt2.mapper.ComScoreMapper' that could not be found.
报错原因:
1、查看是否引入@Controller、@Mapper、@Service等生成bean的注解
2、查看引入的注解是否正确:
如上图存在两个重名的Mapper注解,我们用的是上面这个。
类似的重名注解(Param)还存在Mapper层中:注意选择正确的注解。