springboot整合redis-session实现session共享 引入依赖12345<!-- redis-session --><dependency> <groupId>org.springframework.session</groupId> <artifactId>spring-session-data-redis</artifactId></dependency> 配置123456spring: redis: host: localhost port: 6379 database: 0 password: 测试不需要多余的配置,只要生成了HttpSession就会将session信息保存到redis中。只要多个项目共用一个reids就可以实现session共享(集群) springboot #redis #session springboot整合websocket 上一篇 springboot整合redis发布订阅消息 下一篇 Please enable JavaScript to view the comments