Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当你有一个 tomcat 服务器时如何做到这一点很清楚,但是如果该服务器是嵌入的,例如当你使用 bootJAR 直接从 .jar 文件构建和运行一个 tomcat webapp 时怎么办?
您可以spring-session用于 redis 或 jdbc 中的存储会话
spring-session
阅读文档以获取更多信息