The following configuration creates a Servlet Filter to replace HTTPSession with a Session implementation from Spring Session--Redis Data Store in this example:
@EnableRedisHttpSession
public class ApplicationConfiguration {
@Bean
public LettuceConnectionFactory connectionFactory() {
return new LettuceConnectionFactory();
}
}