Kaynağa Gözat

mybatis驼峰配置

hanzhiwei 3 yıl önce
ebeveyn
işleme
60b79b88eb

+ 6 - 4
zd-modules/zd-chemical/src/main/resources/bootstrap.yml

@@ -8,7 +8,9 @@ mybatis:
   typeAliasesPackage: com.zd.chemical
   # 配置mapper的扫描,找到所有的mapper.xml映射文件
   mapperLocations: classpath:mapper/**/*.xml
-  # 配置日志打印
-  log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-  # Mybatis开启驼峰映射
-  mapUnderscoreToCamelCase: true
+  # 配置项
+  configuration:
+    # 配置日志打印
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    # Mybatis开启驼峰映射
+    mapUnderscoreToCamelCase: true

+ 6 - 4
zd-modules/zd-exam/src/main/resources/bootstrap.yml

@@ -9,7 +9,9 @@ mybatis:
   typeAliasesPackage: com.zd.exam
   # 配置mapper的扫描,找到所有的mapper.xml映射文件
   mapperLocations: classpath:mapper/**/*.xml
-  # 配置日志打印
-  log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-  # Mybatis开启驼峰映射
-  mapUnderscoreToCamelCase: true
+  # 配置项
+  configuration:
+    # 配置日志打印
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    # Mybatis开启驼峰映射
+    mapUnderscoreToCamelCase: true

+ 6 - 4
zd-modules/zd-modules-system/src/main/resources/bootstrap.yml

@@ -8,7 +8,9 @@ mybatis:
   typeAliasesPackage: com.zd.system
   # 配置mapper的扫描,找到所有的mapper.xml映射文件
   mapperLocations: classpath:mapper/**/*.xml
-  # 配置日志打印
-  log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
-  # Mybatis开启驼峰映射
-  mapUnderscoreToCamelCase: true
+  # 配置项
+  configuration:
+    # 配置日志打印
+    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    # Mybatis开启驼峰映射
+    mapUnderscoreToCamelCase: true