> 文章列表 > Spring Security 6.0系列【13】认证篇之会话共享解决方案

Spring Security 6.0系列【13】认证篇之会话共享解决方案

Spring Security 6.0系列【13】认证篇之会话共享解决方案

有道无术,术尚可求,有术无道,止于术。

本系列Spring Boot 版本 3.0.4

本系列Spring Security 版本 6.0.2

源码地址:https://gitee.com/pearl-organization/study-spring-security-demo

文章目录

    • 1. 会话共享
    • 2. 问题演示
    • 3. 解决方案
      • 3.1 客户端存储
      • 3.2 同步
      • 3.3 转发
      • 3.4 存储
    • 4. Spring Session
      • 4.1 入门案例
      • 4.2 并发控制失败问题

1. 会话共享

同一个Web应用中,当存在多个Web服务时,服务端的 Session 数据需要共享。

Spring Security中默认使用<