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(){}