This commit is contained in:
linfso 2024-06-01 11:47:29 +08:00
parent da933d9453
commit 6548e450f6
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ mybatis-plus:
mapper-locations: classpath*:mapper/**/*Mapper.xml
config-location: classpath:mybatis/mybatis-config.xml
configuration:
cache-enabled: false
cache-enabled: true
map-underscore-to-camel-case: true
lazy-loading-enabled: true
aggressive-lazy-loading: false

View File

@ -6,7 +6,7 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
<!-- 全局参数 -->
<settings>
<!-- 使全局的映射器启用或禁用缓存 -->
<setting name="cacheEnabled" value="false" />
<setting name="cacheEnabled" value="true" />
<!-- 允许JDBC 支持自动生成主键 -->
<setting name="useGeneratedKeys" value="true" />
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->