resource下新建目录mybatis-config
<?xml version="1.0" encoding="UTF-8"?><settings>
<!-- 全局映射器启用缓存 -->
<setting name="cacheEnabled" value="true"/>
<setting name="useGeneratedKeys" value="true"/>
<setting name="defaultExecutorType" value="REUSE"/>
<!--<setting name="defaultFetchSize" value="50"/>-->
<!-- 字段为空时仍调用model的set方法或map的put方法 -->
<setting name="callSettersOnNulls" value="true"/>
<setting name="mapUnderscoreToCamelCase" value="true"/>
<setting name="jdbcTypeForNull" value="NULL"/>
<setting name="logImpl" value="STDOUT_LOGGING"/>
<!--<setting name="defaultStatementTimeout" value="300"/>-->
</settings>
<objectWrapperFactory type="com.baomidou.mybatisplus.MybatisMapWrapperFactory"/>
<!-- 分页查询插件
<plugins>
<plugin interceptor="com.baomidou.mybatisplus.plugins.PaginationInterceptor">
<property name="dialectType" value="oracle"/>
<property name="optimizeType" value="aliDruid"/>
</plugin>
</plugins>
-->