1、Field userMapper in com.yanan.outjob.controller.SysUserController required a bean of type 'com.yanan.outjob.dao.SysUserMapper' that could not be found.
mapper注入失败
解决方法启动类添加扫描注解 @MapperScan("com.yanan.outjob.dao")
1、Field userMapper in com.yanan.outjob.controller.SysUserController required a bean of type 'com.yanan.outjob.dao.SysUserMapper' that could not be found.
mapper注入失败
解决方法启动类添加扫描注解 @MapperScan("com.yanan.outjob.dao")