Description:
Field qrcodeMapper in com.xxx.springboot.controller.IppcTpUrlController required a bean of type ‘com.heiban.springboot.mapper.xxxMapper’ 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.xxx.springboot.mapper.xxxMapper’ in your configuration.
解决方法:
- ServiceImpl加上@Service注释
- 在启动类加上注释@MapperScan(basePackages = “XXX.XXX.XXX.mapper”)