refactor: 修改session默认的timeout时间为12小时

This commit is contained in:
Captain.B 2020-09-04 14:29:55 +08:00
parent a8684f4c7b
commit d00f170581
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public class ShiroConfig implements EnvironmentAware {
@Bean
public SessionManager sessionManager(MemoryConstrainedCacheManager memoryConstrainedCacheManager) {
Long sessionTimeout = env.getProperty("session.timeout", Long.class, 1800L); // 默认1800s, 个小时
Long sessionTimeout = env.getProperty("session.timeout", Long.class, 43200L); // 默认43200s, 12个小时
return ShiroUtils.getSessionManager(sessionTimeout, memoryConstrainedCacheManager);
}