@Configuration(proxyBeanMethods=false) @EnableConfigurationProperties(value=RedisHttpSessionConfig.RedisSessionProperties.class) @AutoConfigureBefore(value=org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration.class) public class RedisHttpSessionConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
RedisHttpSessionConfig.CompositeHttpSessionIdResolver |
static class |
RedisHttpSessionConfig.RedisSessionProperties |
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.data.redis.connection.RedisConnectionFactory |
redisConnectionFactory |
| Constructor and Description |
|---|
RedisHttpSessionConfig(RedisHttpSessionConfig.RedisSessionProperties properties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.session.web.http.HttpSessionIdResolver |
httpSessionIdResolver()
Composite Session Id resolver support header first then cookie.
|
void |
redisSessionConnectionFactory(org.springframework.context.support.GenericApplicationContext context)
replacing default redis connection factory for spring session
|
protected org.springframework.data.redis.connection.RedisConnectionFactory redisConnectionFactory
public RedisHttpSessionConfig(RedisHttpSessionConfig.RedisSessionProperties properties)
@Autowired @ConditionalOnBean(value=org.springframework.data.redis.connection.RedisConnectionFactory.class) public void redisSessionConnectionFactory(org.springframework.context.support.GenericApplicationContext context)
@Bean public org.springframework.session.web.http.HttpSessionIdResolver httpSessionIdResolver()
Copyright © 2020. All rights reserved.