Browse Source

更新 message-service 的 mybatis 配置

reghao 5 days ago
parent
commit
3521f0f017
1 changed files with 5 additions and 0 deletions
  1. 5 0
      message/message-service/src/main/resources/application.yml

+ 5 - 0
message/message-service/src/main/resources/application.yml

@@ -22,6 +22,11 @@ spring:
   mvc:
   mvc:
     pathmatch:
     pathmatch:
       matching-strategy: ant_path_matcher
       matching-strategy: ant_path_matcher
+mybatis:
+  configuration:
+    map-underscore-to-camel-case: true
+  mapper-locations: classpath*:mapper/**.xml
+  type-aliases-package: cn.reghao.tnb.message.app.model.po
 hystrix:
 hystrix:
   dashboard:
   dashboard:
     proxy-stream-allow-list: "127.0.0.1"
     proxy-stream-allow-list: "127.0.0.1"