最近在整合spring boot 和通用mapper时遇到错误,纠结了好长时间,先看错误
Description:Field baseMapper in com.sinosoft.common.mybatis.service.impl.BaseServiceImpl required a bean of type 'com.sinosoft.common.mybatis.mapper.MyBaseMapper' that could not be found.Action:Consider defining a bean of type 'com.sinosoft.common.mybatis.mapper.MyBaseMapper' in your configuration.Process finished with exit code 1
问题解决思路
1.先看下pom,下边是整合通用mapper所须的依赖
<!--mysql-->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!--mybatis-->
<dependency>