From d146c084c0b5bf360cd55d63e79916c55e703a3e Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期六, 16 十一月 2024 09:15:35 +0800
Subject: [PATCH] 1

---
 billion-admin/src/main/resources/application.yml |   45 +++++++++++++++++++++++++++++++++++++++------
 1 files changed, 39 insertions(+), 6 deletions(-)

diff --git a/billion-admin/src/main/resources/application.yml b/billion-admin/src/main/resources/application.yml
index 4406572..5e2e740 100644
--- a/billion-admin/src/main/resources/application.yml
+++ b/billion-admin/src/main/resources/application.yml
@@ -106,14 +106,47 @@
 #  # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠�
 #  configLocation: classpath:mybatis/mybatis-config.xml
 
-# MyBatis Plus閰嶇疆
+## MyBatis Plus閰嶇疆
+#mybatis-plus:
+#  # 鎼滅储鎸囧畾鍖呭埆鍚�
+#  typeAliasesPackage: com.billion.**.domain
+#  # 閰嶇疆mapper鐨勬壂鎻忥紝鎵惧埌鎵�鏈夌殑mapper.xml鏄犲皠鏂囦欢
+#  mapperLocations: classpath*:mapper/**/*Mapper.xml
+#  # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠�
+#  configLocation: classpath:mybatis/mybatis-config.xml
+
 mybatis-plus:
-  # 鎼滅储鎸囧畾鍖呭埆鍚�
-  typeAliasesPackage: com.billion.**.domain
-  # 閰嶇疆mapper鐨勬壂鎻忥紝鎵惧埌鎵�鏈夌殑mapper.xml鏄犲皠鏂囦欢
+  # 瀵瑰簲鐨� XML 鏂囦欢浣嶇疆
   mapperLocations: classpath*:mapper/**/*Mapper.xml
-  # 鍔犺浇鍏ㄥ眬鐨勯厤缃枃浠�
-  configLocation: classpath:mybatis/mybatis-config.xml
+  typeAliasesPackage: com.billion.**.domain
+  checkConfigLocation: false
+  executorType: SIMPLE
+  configuration:
+    mapUnderscoreToCamelCase: true
+    defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler
+    aggressiveLazyLoading: true
+    autoMappingBehavior: PARTIAL
+    autoMappingUnknownColumnBehavior: NONE
+    localCacheScope: SESSION
+    # 寮�鍚疢ybatis浜岀骇缂撳瓨锛岄粯璁や负 true
+    cacheEnabled: true
+  global-config:
+    banner: true
+    enableSqlRunner: false
+    dbConfig:
+      idType: AUTO
+      tablePrefix: null
+      columnFormat: null
+      tableUnderline: true
+      capitalMode: false
+      logicDeleteField: deleted
+      # 閫昏緫宸插垹闄ゅ��
+      logicDeleteValue: 1
+      # 閫昏緫鏈垹闄ゅ��
+      logicNotDeleteValue: 0
+      insertStrategy: NOT_NULL
+      updateStrategy: NOT_NULL
+
 
 # PageHelper鍒嗛〉鎻掍欢
 pagehelper:

--
Gitblit v1.9.3