瀏覽代碼

redis配置

xusonglin 5 年之前
父節點
當前提交
d1548f9561
共有 1 個文件被更改,包括 10 次插入10 次删除
  1. 10 10
      src/main/resources/application-prod.yml

+ 10 - 10
src/main/resources/application-prod.yml

@@ -1,21 +1,21 @@
 server:
   port: 18081
+mybatis-plus:
+  mapper-locations: classpath:mapper/*Mapper.xml
+  global-config:
+    db-config:
+      table-prefix: h_
 spring:
   datasource:
-    url: jdbc:mysql://localhost:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
+    url: jdbc:mysql://127.0.0.1:3306/db_invoice?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true
     username: invoice
     password: invoiceX%190605
     driver-class-name: com.mysql.cj.jdbc.Driver
     platform: mysql
-mybatis-plus:
-  mapper-locations: classpath:mapper/*Mapper.xml
-  global-config:
-    db-config:
-      table-prefix: h_
-redis:
-  host: 127.0.0.1
-  port: 6379
-  password: lq2uRBsf<vh2ouo
+  redis:
+    host: 127.0.0.1
+    port: 6379
+    password: lq2uRBsf<vh2ouo
   rabbitmq:
     host: 127.0.0.1
     port: 5672