(1)参考的这个: https://cloud.tencent.com/developer/article/1350242
(2)注意版本 maven库 https://mvnrepository.com/artifact/org.springframework.session/spring-session-data-redis ------------------------- 1.3.5.RELEASE https://docs.spring.io/spring-session/docs/1.3.5.RELEASE/reference/html5/
-------------------------- 直接跳到2.0版本了。 2.0.0.RELEASE Upgraded to Java 8 and Spring Framework 5 as baseline 2.2.0.RELEASE https://docs.spring.io/spring-session/docs/2.2.0.BUILD-SNAPSHOT/reference/html5/#what-s-new-in-2-0
(3) RedisHttpSessionConfiguration发现多个工厂,会报错,没法指定工厂id,加primary="true"就行了。
<bean id="lettuceRedisFactory" primary="true" class="org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory">
</bean> (4)弄了半天好像不好使,咋回事呢,shiro的问题吗?
|