错误日志描述

Description:
Field eduTeacherMapper in com.greatdata.provider.service.EduTeacherServiceImpl required a bean of type 'com.greatdata.provider.mapper.EduTeacherMapper' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)


Action:

Consider defining a bean of type 'com.greatdata.provider.mapper.EduTeacherMapper' in your configuration.

解决方法,在启动类上加上扫描包
@MapperScan(basePackages = "com.songzixian.mapper")

Last modification:May 22, 2020
如果觉得这篇技术文章对你有用,请随意赞赏