njs 8 tháng trước cách đây
mục cha
commit
36c43f0a87

+ 8 - 8
suishenbang-admin/src/main/resources/application-uat-druid.yml

@@ -13,9 +13,9 @@ spring:
             slave:
                 # 从数据源开关/默认关闭
                 enabled: false
-                url: 
-                username: 
-                password: 
+                url:
+                username:
+                password:
             # 初始连接数
             initialSize: 10
             # 最小连接池数量
@@ -23,7 +23,7 @@ spring:
             # 最大连接池数量
             maxActive: 40
             # 配置获取连接等待超时的时间
-            maxWait: 60000
+            maxWait: 180000
             # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
             timeBetweenEvictionRunsMillis: 60000
             # 配置一个连接在池中最小生存的时间,单位是毫秒
@@ -35,7 +35,7 @@ spring:
             testWhileIdle: true
             testOnBorrow: false
             testOnReturn: false
-            webStatFilter: 
+            webStatFilter:
                 enabled: true
             statViewServlet:
                 enabled: true
@@ -43,8 +43,8 @@ spring:
                 allow:
                 url-pattern: /druid/*
                 # 控制台管理用户名和密码
-                login-username: 
-                login-password: 
+                login-username:
+                login-password:
             filter:
                 stat:
                     enabled: true
@@ -54,4 +54,4 @@ spring:
                     merge-sql: true
                 wall:
                     config:
-                        multi-statement-allow: true
+                        multi-statement-allow: true

+ 1 - 1
suishenbang-framework/src/main/java/com/dgtly/framework/shiro/session/OnlineSessionDAO.java

@@ -71,7 +71,7 @@ public class OnlineSessionDAO extends EnterpriseCacheSessionDAO
         {
             boolean needSync = true;
             long deltaTime = onlineSession.getLastAccessTime().getTime() - lastSyncTimestamp.getTime();
-            if (deltaTime < dbSyncPeriod * 300 * 1000)
+            if (deltaTime < dbSyncPeriod * 60 * 1000)
             {
                 // 时间差不足 无需同步
                 needSync = false;