@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Import(value=SpringWebSessionConfiguration.class) @Configuration(proxyBeanMethods=false) public @interface EnableSpringWebSession
@Configuration class to configure a
WebSessionManager for a WebFlux application. This annotation assumes a
ReactiveSessionRepository is defined somewhere in the application context. If
not, it will fail with a clear error message. For example:
@Configuration
@EnableSpringWebSession
public class SpringWebFluxConfig {
@Bean
public ReactiveSessionRepository sessionRepository() {
return new ReactiveMapSessionRepository(new ConcurrentHashMap<>());
}
}