错误描述:
The bean 'sessionEventHttpSessionListenerAdapter', defined in class path resource [org/springframework/boot/autoconfigure/session/RedisSessionConfiguration$SpringBootRedisHttpSessionConfiguration.class], could not be registered. A bean with that name has already been defined in org.springframework.session.config.annotation.web.http.SpringHttpSessionConfiguration and overriding is disabled.
解决办法:
将主类上的@EnableSpringHttpSession修改为@EnableRedisHttpSession