Class SpringWebSessionConfiguration

java.lang.Object
org.springframework.session.config.annotation.web.server.SpringWebSessionConfiguration

@Configuration(proxyBeanMethods=false) public class SpringWebSessionConfiguration extends Object
Wire up a WebSessionManager using a Reactive ReactiveSessionRepository from the application context.
Since:
2.0
See Also:
  • 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 a WebSessionManager using a provided ReactiveSessionRepository.
      Parameters:
      repository - a bean that implements ReactiveSessionRepository.
      Returns:
      a configured WebSessionManager registered with a preconfigured name.