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注入失败

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

  解决方法启动类添加扫描注解 @MapperScan("com.yanan.outjob.dao")

 springboot-遇到的错误 随笔

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄