Przeglądaj źródła

更新mysql与redis配置,延长会话过期时间为6小时

刘桐 2 tygodni temu
rodzic
commit
b44cd09ef9

+ 1 - 1
xvji-admin/src/main/resources/application-druid.yml

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

+ 3 - 3
xvji-admin/src/main/resources/application.yml

@@ -62,7 +62,7 @@ spring:
   # redis 配置
   redis:
     # 地址
-    host: localhost
+    host: 192.168.10.27
     # 端口,默认为6379
     port: 6379
     # 数据库索引
@@ -88,8 +88,8 @@ token:
     header: Authorization
     # 令牌密钥
     secret: abcdefghijklmnopqrstuvwxyz
-    # 令牌有效期(默认30分钟
-    expireTime: 30
+    # 令牌有效期(六个小时过期重新登陆
+    expireTime: 360
   
 # MyBatis配置
 mybatis: