package sample.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@Configuration
@EnableRedisHttpSession // <1>
public class HttpSessionConfig {

    @Bean
    public JedisConnectionFactory connectionFactory() {
        return new JedisConnectionFactory(); // <2>
    }
}

@@ -67,152 +67,21 @@
 ion.
-Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.data.redis.connection.jedis.JedisConnectionFactory
+Configuration
 ;%0Aim
@@ -260,130 +260,7 @@
  %7B%0A%0A
-    @Bean%0A    public JedisConnectionFactory connectionFactory() %7B%0A        return new JedisConnectionFactory(); // %3C2%3E%0A    %7D
 %0A%7D%0A

Remove unnecessary JedisConnectionFactory bean