Browse Source

修改配置文件

wangyi 3 years ago
parent
commit
e4a5b470ad
2 changed files with 5 additions and 7 deletions
  1. 3 7
      src/main/resources/application-dev.yml
  2. 2 0
      src/main/resources/application.yml

+ 3 - 7
src/main/resources/application-dev.yml

@@ -4,11 +4,8 @@ spring:
         druid:
             driver-class-name: com.mysql.cj.jdbc.Driver
             url: jdbc:mysql://localhost:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
-#            url: jdbc:mysql://112.126.68.148:3306/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
-            #url: jdbc:mysql://112.126.68.148:6033/renren_fast?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
             username: root
-#            password: root
-            password: 123456
+            password: root
             initial-size: 10
             max-active: 100
             min-idle: 10
@@ -42,12 +39,11 @@ dynamic:
   datasource:
     bigData:
 #      url: jdbc:mysql://112.126.68.148:6033/hebing?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
-        url: jdbc:mysql://localhost:3306/hebing?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
-     #url: jdbc:mysql://150.158.138.99:3306/zhenjiang?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false
+        url: jdbc:mysql://localhost:3306/bigdata_sgwtest?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
         username: root
 #      password: XDUbdm520Mysql
 #        password: root
-        password: 123456
+        password: root
         driver-class-name: com.mysql.jdbc.Driver # 3.2.0开始支持SPI可省略此配置
 server:
     port: 8082

+ 2 - 0
src/main/resources/application.yml

@@ -26,7 +26,9 @@ host-username: root
 host-password: XDU520bdm
 host-basepath: /opt/uploadFile
 host-port: 22
+#连接远程服务器是否需要秘钥
 key-needed: true
+#如果需要秘钥,则将秘钥地址填写在此
 key-location: D:/Program Files/secretKey/lab1
 
 #docker证书存放路径