原因1:是因为在service的实现类上面没有加service注解。

原因2:未在spring启动类中添加mapper的扫描路径

 

更多推荐

Consider defining a bean of type "' in your configure 报错没有bean省略的是接口名称