springboot 对mybatis配置
首先引入pom坐标
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.2.0</version>
</dependency>
创建包
首先需要在主类中
@MapperScan("cn.xx.mapper")
其次配置好xml位置 :