Spring cloud+redis在第一次访问SessionId会发生改变,再次刷新所有微服务就同步了

Spring cloud 结合 redis spring session在第一次访问SessionId会发生改变,再次刷新所有微服务就同步了


org.springframework.boot
spring-boot-starter-data-redis


org.springframework.session
spring-session-data-redis

拦截器也写了,没有走网关
@Bean
public RequestInterceptor requestInterceptor(){}

对照这个配置 https://blog.csdn.net/lanshen110119/article/details/83104926