取得进展
VMware 提供培训和认证,助您快速发展。
了解更多我代表团队和社区,很高兴宣布 Spring Boot for Apache Geode 和 Pivotal GemFire 1.0.0.M2
版本发布。
总而言之,本次发布带来了以下改进:
使用 Apache Geode、Pivotal GemFire 或 Pivotal Cloud Cache (PCC) 管理和存储 Spring Boot 应用程序的 (HTTP) 会话状态时,提供对 Spring Session 的自动配置支持。
在使用通过 Spring Boot 自动配置的 Spring 缓存抽象 时,识别 spring.cache.type
。
文档的补充和改进。
升级到 Spring Framework 5.0.8.RELEASE
、Spring Boot 2.0.4.RELEASE
和 Spring Data Kay-SR9
本次发布基于最近发布的 Spring Session for Apache Geode/Pivotal GemFire (SSDG) 2.0.5.RELEASE
。
SSDG 的一个关键新增功能是使用属性以及新的 SpringSessionGemFireConfigurer
回调接口实现 Spring Session 与 Apache Geode/Pivotal GemFire/PCC 的动态配置。这样一来,即使在 Spring Boot 的自动配置上下文中,用户也能够自定义配置以满足其应用程序需求。
除了此处讨论并此处记录的属性外,Spring Boot for Apache Geode & Pivotal GemFire 还识别以下属性:
spring.session.timeout
server.servlet.session.timeout
不过,如果同时设置了这些属性,则 spring.session.data.gemfire.session.expiration.max-inactive-interval-seconds
优先于 spring.session.timeout
,而 spring.session.timeout
优先于 server.servlet.session.timeout
。
Spring Boot for Apache Geode/Pivotal GemFire 还识别并遵循 spring.session.store-type
。然而,遗憾的是,此属性不能设置为 gemfire
或 geode
,因为 Spring Boot 本身不将这些值识别为有效的(枚举)值。
关于新的 SpringSessionGemFireConfigurer
回调接口,Spring Boot for Apache Geode & Pivotal GemFire 并未增加 Spring Session for Apache Geode/Pivotal GemFire 已提供的功能,这部分内容已在此处讨论并在此处记录。
接下来,Spring Boot for Apache Geode & Pivotal GemFire 将提供 OOTB(开箱即用)的 HealthIndicators
,用于评估和监控基于 Apache Geode/Pivotal GemFire 的 Spring Boot 应用程序的运行时健康状况。
有关 Spring Boot HealthIndicators
的更多信息可以在此处找到。
这将在下一个版本 1.0.0.M3
中提供。
从更长远来看,我们计划增加对 Spring Boot Actuator 的支持。目前正在进行一项工作,用 Micrometer 对 Apache Geode/Pivotal GemFire 的统计架构进行改造。这将作为 Spring Boot for Apache Geode & Pivotal GemFire Actuator 支持的基础。这很可能在 SBDG 1.1 中提供。
试试看!
您可以从 Spring 的 libs-milestone 仓库获取新的 Spring Boot for Apache Geode 或 Pivotal GemFire 组件,并通过包含以下依赖项开始构建由 Apache Geode/Pivotal GemFire 提供支持的 Spring Boot 应用程序:
org.springframework.geode:spring-geode-starter
(Apache Geode)
org.springframework.geode:spring-gemfire-starter
(Pivotal GemFire/PCC)
任何反馈和/或贡献始终受到欢迎和赞赏:问题 | PR(拉取请求) | StackOverflow。
今年也一定要关注SpringOne Platform。那里有很多精彩的内容和演讲者。此外,Luke Shannon 和我将就“实时扩展 Spring Boot 应用程序”进行演讲,届时我们将展示本项目及更多内容。