Field xxxMapper in com.xxx.service.UserService required a bean of type ....
问题启动springboot项目时出现了Field xxxMapper in xxx.service.UserService required a bean of type 'cxxx.mapper.UserMapper' that could not be found.解决方案在springboot的启动类上面mybatis提供的 @MapperScan 注解即可@MapperScan("com.la.wedding.mapper")因为接口的实现类是spring帮我们动态代理生成的,不