Kaynağa Gözat

设置session过期时间

tags/24080901
WendyYang 1 yıl önce
ebeveyn
işleme
dc065b16ec
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  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 Dosyayı Görüntüle

@@ -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;

Yükleniyor…
İptal
Kaydet