No qualifying bean of type

我今天发生了No qualifying bean of type,经过一番苦查,原来是Mapscan配置冲突导致的

我在启动类上配置了  @MapperScan("org.xxx.xxx.daos.**.mapper")

同时使用了Mybatis Plus的配置

mybatis-plus:
mapper-locations: classpath*:/mapper/**Mapper.xml

我的Mybatis Plus为3.3.2版本