This commit is contained in:
linfso 2024-06-01 09:23:43 +08:00
parent 5b45e0c44a
commit da933d9453
2 changed files with 2 additions and 2 deletions

View File

@ -87,11 +87,11 @@ token:
# mapperLocations: classpath*:mapper/**/*Mapper.xml # mapperLocations: classpath*:mapper/**/*Mapper.xml
# # 加载全局的配置文件 # # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml # configLocation: classpath:mybatis/mybatis-config.xml
# config-location: classpath:mybatis/mybatis-config.xml
mybatis-plus: mybatis-plus:
type-aliases-package: com.xdadan.**.domain type-aliases-package: com.xdadan.**.domain
mapper-locations: classpath*:mapper/**/*Mapper.xml mapper-locations: classpath*:mapper/**/*Mapper.xml
config-location: classpath:mybatis/mybatis-config.xml
configuration: configuration:
cache-enabled: false cache-enabled: false
map-underscore-to-camel-case: true map-underscore-to-camel-case: true

View File

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