zengsj 10 mesi fa
parent
commit
f5ecec9fb2

+ 15 - 15
src/main/resources/application-dev.yml

@@ -1,27 +1,27 @@
 spring:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://localhost:3306/lq-blood?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
-    username: root
-    password: 123456
+    url: jdbc:mysql://bj-cdb-nbje9oq2.sql.tencentcdb.com:59747/yzky_dev?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true
+    username: yzky
+    password: XxMziITdKF0pw0y
   jpa:
     show-sql: true # 开启控制台SQL日志
     hibernate:
       ddl-auto: update # 自动创建、更新或验证数据库表结构
     database-platform: org.hibernate.dialect.MySQL5InnoDBDialect # 指定数据库方言
 
-#  redis:
-#    database: 0
-#    host: localhost
-#    port: 6379
-#    password: # 密码为空则不设置此项或设置为null
-#    timeout: 10000ms # 连接超时时间(毫秒)
-#    lettuce:
-#      pool:
-#        max-active: 8 # 连接池最大连接数(负值为没有限制)
-#        max-wait: -1ms # 连接池最大阻塞等待时间(负值为没有限制)
-#        max-idle: 8 # 连接池中的最大空闲连接
-#        min-idle: 0 # 连接池中的最小空闲连接
+  redis:
+    database: 0
+    host: 82.157.27.202
+    port: 6379
+    password: hSx8nUrQkR7ZKaw # 密码为空则不设置此项或设置为null
+    timeout: 10000ms # 连接超时时间(毫秒)
+    lettuce:
+      pool:
+        max-active: 8 # 连接池最大连接数(负值为没有限制)
+        max-wait: -1ms # 连接池最大阻塞等待时间(负值为没有限制)
+        max-idle: 8 # 连接池中的最大空闲连接
+        min-idle: 0 # 连接池中的最小空闲连接
 param:
   #专网地址
   local-url: http://10.152.101.6:8080/net-diag-service/test-openapi/api

+ 17 - 15
src/main/resources/application-pro.yml

@@ -4,26 +4,28 @@ spring:
       matching-strategy: ant_path_matcher
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://localhost:3306/lq-blood?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
-    username: root
-    password: 1234567
+    url: jdbc:mysql://bj-cdb-nbje9oq2.sql.tencentcdb.com:59747/yzky_test?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true
+    username: yzky
+    password: XxMziITdKF0pw0y
   jpa:
     show-sql: true # 开启控制台SQL日志
     hibernate:
       ddl-auto: update # 自动创建、更新或验证数据库表结构
     database-platform: org.hibernate.dialect.MySQL5InnoDBDialect # 指定数据库方言
-#  redis:
-#    database: 0
-#    host: localhost
-#    port: 6379
-#    password: # 密码为空则不设置此项或设置为null
-#    timeout: 10000ms # 连接超时时间(毫秒)
-#    lettuce:
-#      pool:
-#        max-active: 8 # 连接池最大连接数(负值为没有限制)
-#        max-wait: -1ms # 连接池最大阻塞等待时间(负值为没有限制)
-#        max-idle: 8 # 连接池中的最大空闲连接
-#        min-idle: 0 # 连接池中的最小空闲连接
+  redis:
+    database: 0
+    host: bj-crs-bps4d3sk.sql.tencentcdb.com
+    #数据库端口 默认为6379
+    port: 22573
+    #数据库密码
+    password: hSx8nUrQkR7ZKaw
+    timeout: 10000ms # 连接超时时间(毫秒)
+    lettuce:
+      pool:
+        max-active: 8 # 连接池最大连接数(负值为没有限制)
+        max-wait: -1ms # 连接池最大阻塞等待时间(负值为没有限制)
+        max-idle: 8 # 连接池中的最大空闲连接
+        min-idle: 0 # 连接池中的最小空闲连接
 param:
   #专网地址
   local-url: http://10.152.101.6:8080/net-diag-service/openapi/api

+ 5 - 5
src/main/resources/application-test.yml

@@ -1,9 +1,9 @@
 spring:
   datasource:
     driver-class-name: com.mysql.cj.jdbc.Driver
-    url: jdbc:mysql://localhost:3306/lq-blood?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
-    username: root
-    password: 123456
+    url: jdbc:mysql://bj-cdb-nbje9oq2.sql.tencentcdb.com:59747/yzky_test?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true
+    username: yzky
+    password: XxMziITdKF0pw0y
   jpa:
     show-sql: true # 开启控制台SQL日志
     hibernate:
@@ -11,9 +11,9 @@ spring:
     database-platform: org.hibernate.dialect.MySQL5InnoDBDialect # 指定数据库方言
   redis:
     database: 0
-    host: localhost
+    host: 82.157.27.202
     port: 6379
-    password: # 密码为空则不设置此项或设置为null
+    password: hSx8nUrQkR7ZKaw # 密码为空则不设置此项或设置为null
     timeout: 10000ms # 连接超时时间(毫秒)
     lettuce:
       pool: