This commit is contained in:
linfso 2024-08-19 12:01:05 +08:00
parent 73fd830017
commit 644614b3d9
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ token:
mybatis-plus:
type-aliases-package: com.xdadan.**.domain
mapper-locations: classpath*:mapper/**/*Mapper.xml
# config-location: classpath:mybatis/mybatis-config.xml
config-location: classpath:mybatis/mybatis-config.xml
configuration:
cache-enabled: true
map-underscore-to-camel-case: true

View File

@ -14,7 +14,7 @@ PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
<!-- 指定 MyBatis 所用日志的具体实现 -->
<setting name="logImpl" value="SLF4J" />
<!-- 使用驼峰命名法转换字段 -->
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
<setting name="mapUnderscoreToCamelCase" value="true"/>
<setting name="lazyLoadingEnabled" value="true"/>
<setting name="aggressiveLazyLoading" value="false"></setting>