Browse Source

设置session过期时间

tags/24080901
WendyYang 1 year ago
parent
commit
dc065b16ec
1 changed files with 2 additions and 2 deletions
  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 View File

@@ -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…
Cancel
Save