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.
解决方法:

  1. ServiceImpl加上@Service注释
  2. 在启动类加上注释@MapperScan(basePackages = “XXX.XXX.XXX.mapper”)

更多推荐

springboot启动报错 Consider defining a bean of type ‘com.xxx.springboot.mapper.xxxMa