【问题标题】:Is it possible to turn on session replication for embedded tomcat servers in Spring Boot?是否可以在 Spring Boot 中为嵌入式 tomcat 服务器打开会话复制?
【发布时间】:2018-12-14 06:59:25
【问题描述】:

当你有一个 tomcat 服务器时如何做到这一点很清楚,但如果该服务器是嵌入式的,例如当你使用 bootJAR 直接从 .jar 文件构建和运行 tomcat webapp 时怎么办?

【问题讨论】:

    标签: spring-boot tomcat session-replication


    【解决方案1】:

    您可以使用spring-session 在 redis 或 jdbc 中存储会话

    阅读docs了解更多信息

    【讨论】:

      猜你喜欢
      • 2017-02-01
      • 1970-01-01
      • 2019-10-11
      • 2018-01-01
      • 1970-01-01
      • 2021-07-18
      • 2018-11-03
      • 2018-08-13
      • 2018-07-12
      相关资源
      最近更新 更多