一、添加依赖
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>
二、配置yml
#编辑Mybatis配置
mybatis:
type-aliases-package: com.jt.pojo #定义别名包
mapper-locations: classpath:/mybatis/mappers/*.xml #加载mapper映射文件
#开启驼峰映射
configuration:
map-underscore-to-camel-case: true