Ver código fonte

fix 设置线上数据库连接

tjf 3 anos atrás
pai
commit
6859bc0c87

+ 0 - 4
ruoyi-admin/.rebel-remote.xml.bak

@@ -1,4 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<rebel-remote xmlns="http://www.zeroturnaround.com/rebel/remote">
-    <id>com.ruoyi.ruoyi-admin</id>
-</rebel-remote>

+ 1 - 1
ruoyi-admin/src/main/resources/application-prod.yml

@@ -6,7 +6,7 @@ spring:
         druid:
         druid:
             # 主库数据源
             # 主库数据源
             master:
             master:
-                url: jdbc:mysql://47.99.82.249:3306/zhaoshang?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                url: jdbc:mysql://127.0.0.1:3306/zhaoshang?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
                 username: zhaoshang
                 username: zhaoshang
                 password: zhaoshang@2018
                 password: zhaoshang@2018
             # 从库数据源
             # 从库数据源