Spring Session 中的 store-type 属性不再可用了吗?

问题描述 投票:0回答:1

在 Spring Boot 配置的 Spring Session Documentation 中,解释的第一个属性是

spring.session.store-type=jdbc
。但在 Spring Boot 文档的 Spring Session 部分 中没有列出此属性。此外,此属性未在所有其他 Web 属性 中列出。

尝试像旧文档中所述禁用会话存储的使用没有任何效果:

spring.session.store-type=none

无论如何都会创建会话存储。

spring-session-jdbc
添加为依赖项时,是否不再可以禁用会话存储,因此 Spring Boot 将自动配置它以供使用?

spring-boot spring-session
1个回答
0
投票

根据迁移指南,不再支持它https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide#spring-session-store-type

您可以定义自己的

SessionRepository
来覆盖自动配置。

© www.soinside.com 2019 - 2024. All rights reserved.