he.dujuan 3 年 前
コミット
05c6ac010d

+ 6 - 9
eladmin-system/src/main/resources/config/application-dev.yml

@@ -4,15 +4,12 @@ spring:
     druid:
       db-type: com.alibaba.druid.pool.DruidDataSource
       driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
-#      url: jdbc:log4jdbc:mysql://${DB_HOST:localhost}:${DB_PORT:3306}/${DB_NAME:eladmin}?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
-#      username: ${DB_USER:root}
-#      password: ${DB_PWD:123456}
-      url: jdbc:log4jdbc:mysql://114.55.24.6:3308/dm_restaurant?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
-      username: root
-      password: shimao@123
-#      url: jdbc:log4jdbc:mysql://47.101.34.182:3306/dm_restaurant?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
-#      username: dev
-#      password: root
+#      url: jdbc:log4jdbc:mysql://114.55.24.6:3308/dm_restaurant?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
+#      username: root
+#      password: shimao@123
+      url: jdbc:log4jdbc:mysql://47.101.34.182:3306/dm_restaurant?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
+      username: dev
+      password: root
       # 初始连接数
       initial-size: 5
       # 最小连接数

+ 3 - 5
eladmin-system/src/main/resources/config/application.yml

@@ -25,12 +25,10 @@ spring:
   redis:
     #数据库索引
     database: ${REDIS_DB:2}
-#    host: ${REDIS_HOST:172.16.159.48}
+#    host: ${REDIS_HOST:114.55.24.6}
 #    port: ${REDIS_PORT:6381}
-    host: ${REDIS_HOST:114.55.24.6}
-    port: ${REDIS_PORT:6381}
-#    host: ${REDIS_HOST:127.0.0.1}
-#    port: ${REDIS_PORT:6379}
+    host: ${REDIS_HOST:127.0.0.1}
+    port: ${REDIS_PORT:6379}
     password: ${REDIS_PWD:}
     #连接超时时间
     timeout: 5000ms