报错信息:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field studentMapper in com.zxx.service.TestService required a bean of type 'com.zxx.dao.StudentMapper' that could not be found.
Action:
Consider defining a bean of type 'com.zxx.dao.StudentMapper' in your configuration.
方法一:
在启动类上加注解:
@MapperScan(basePackages = {“xxx.xxx.xxx”})
方法二:
在Dao层接口加注解:
@Mapper