Browse Source

redis配置

xusonglin 5 years ago
parent
commit
d1548f9561
1 changed files with 10 additions and 10 deletions
  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