springboot启动:报异常-> Field usersMapper in com.imooc.impl.UserServiceImpl required a bean of type ‘com.imooc.mapper.UsersMapper’ that could not be found.
解决:
1、看注解是否正确标注。
数据层注解:@Mapper
业务层在实现类标注:@Service
2、看导包是否正确。
springboot启动:报异常-> Field usersMapper in com.imooc.impl.UserServiceImpl required a bean of type ‘com.imooc.mapper.UsersMapper’ that could not be found.
解决:
1、看注解是否正确标注。
数据层注解:@Mapper
业务层在实现类标注:@Service
2、看导包是否正确。