Field xx in xx required a bean of type 'xxxMapper' that could not be found问题

在sringboot项目中扫描不到Mapper

解决方法:在sringboot启动类中加入扫描Mapper类的注解

@MapperScan("com.etc.dao")

 

你可能感兴趣的:(SpringBoot,调试)