Class SpringWebSessionConfiguration
java.lang.Object
org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration
- Direct Known Subclasses:
ReactiveMongoWebSessionConfiguration
,RedisWebSessionConfiguration
Wire up a
WebSessionManager
using a Reactive ReactiveSessionRepository
from the application context.- Since:
- 2.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setWebSessionIdResolver
(org.springframework.web.server.session.WebSessionIdResolver webSessionIdResolver) org.springframework.web.server.session.WebSessionManager
webSessionManager
(ReactiveSessionRepository<? extends Session> repository) Configure aWebSessionManager
using a providedReactiveSessionRepository
.
-
Constructor Details
-
SpringWebSessionConfiguration
public SpringWebSessionConfiguration()
-
-
Method Details
-
setWebSessionIdResolver
@Autowired(required=false) public void setWebSessionIdResolver(org.springframework.web.server.session.WebSessionIdResolver webSessionIdResolver) -
webSessionManager
@Bean("webSessionManager") public org.springframework.web.server.session.WebSessionManager webSessionManager(ReactiveSessionRepository<? extends Session> repository) Configure aWebSessionManager
using a providedReactiveSessionRepository
.- Parameters:
repository
- a bean that implementsReactiveSessionRepository
.- Returns:
- a configured
WebSessionManager
registered with a preconfigured name.
-