The following configuration creates a servlet filter to replace HTTPSession with a session implementation from Spring Session—Redis data store:
@EnableRedisHttpSession
public class ApplicationConfiguration {
@Bean
public LettuceConnectionFactory connectionFactory() {
return new LettuceConnectionFactory();
}
}