1 引入pom
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
2 修改配置文件
mybatis:configuration:map-underscore-to-camel-case: true
1 引入pom
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.0.0</version>
</dependency>
2 修改配置文件
mybatis:configuration:map-underscore-to-camel-case: true