nickchange
2023-10-11 a02a6e0f7b7404e87b6347a5a7f33b431645634e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.dsh.guns.config;
 
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
 
/**
 * spring session配置
 *
 * @author fengshuonan
 * @date 2017-07-13 21:05
 */
//@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 1800)  //session过期时间  如果部署多机环境,需要打开注释 If deploying in a multi-machine environment, it is necessary to uncomment the session expiration time.
@ConditionalOnProperty(prefix = "guns", name = "spring-session-open", havingValue = "true")
public class SpringSessionConfig {
 
}