摘要: SpringSession优势 遵循servlet规范,同样方式获取session,对应用代码无侵入且对于developers透明化 关键点在于做到透明和兼容 接口适配:仍然使用HttpServletRequest获取session,获取到的session仍然是HttpSession类型——适配器模 阅读全文
posted @ 2019-05-05 15:32 yanglei.xyz 阅读(2622) 评论(0) 推荐(0) 编辑
摘要: 本地新建redis配置文件 redis.conf ,写入以下内容 #允许外网访问 bind 0.0.0.0 daemonize NO protected-mode no requirepass 123456 启动容器 docker run -p 6379:6379 --name redis -v D:\docker\redis\redis.conf:/etc/redis/redis.conf -v D:\docker\redis\data:/data -d redis:3.2 redis-server /etc/redis/redis.conf --appendonly yes 阅读全文
posted @ 2019-05-05 15:11 yanglei.xyz 阅读(8414) 评论(0) 推荐(0) 编辑