[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[备忘]spring session小注意

上一篇:[备忘]Eterm里,NVB和NVA的意思
下一篇:[备忘]linux定时清理当天的日志

添加日期:2019/11/21 9:23:02 快速返回   返回列表 阅读1344次
(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的问题吗?
 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved