瀏覽代碼

设置session过期时间

master
WendyYang 1 年之前
父節點
當前提交
dc065b16ec
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/SessionTimeoutConfig.java

pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/RedisSessionTimeoutConfig.java → pmapi/src/main/java/com/ningdatech/pmapi/user/security/auth/config/SessionTimeoutConfig.java 查看文件

@@ -21,9 +21,9 @@ import javax.annotation.PostConstruct;
@Configuration
@RequiredArgsConstructor
@AutoConfigureAfter(RedisHttpSessionConfiguration.class)
public class RedisSessionTimeoutConfig {
public class SessionTimeoutConfig {

@Value("${spring.session.timeout:60 * 60 * 4}")
@Value("${spring.session.timeout:14400}")
private Integer springSessionTimeout;

private final RedisHttpSessionConfiguration redisHttpSessionConfiguration;

Loading…
取消
儲存