2.mybatils-config.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<setting name="lazyLoadingEnabled" value="true"/>
<setting name="aggressiveLazyLoading" value="false"/>
<!-- 下划线转驼峰式 -->
<setting name="mapUnderscoreToCamelCase" value="true"/>
<setting name="logPrefix" value="sql."/>
</settings>
</configuration>