Repository navigation
Coherence Spring 5.0.0 upgrades the integration to Spring Framework 7 and Spring Boot 4. It supports Java 17 and Java 21 and targets Java 17 bytecode. If you are upgrading from 4.x, start with the 4.x to 5.x upgrade guide.
New Features
- Added
coherence-spring-session-boot-starterfor Spring Boot servlet applications, including WAR deployments. The generalcoherence-spring-boot-starternow treatscoherence-spring-sessionandspring-boot-sessionas optional. To keep Coherence-backed HTTP sessions when upgrading, use the dedicated starter or declare both optional dependencies explicitly. Supply the Coherence runtime and servlet web dependencies in your application. Session starter - Updated Coherence metrics integration for Spring Boot 4. To bind Coherence metrics, add
coherence-micrometerand supply aMeterRegistrythrough Boot Actuator, Boot’s Micrometer metrics starter, or your own bean. Metrics setup - Added POF serialization support for Spring Security 7 factor authorities, preserving their issuance timestamps. The Session library also includes security metadata for its own operations on hardened Coherence runtimes. Session serialization and hardening
Bug Fixes
- Fixed session timeout configuration for external WAR deployments. Set
spring.session.timeoutexplicitly in a WAR, where the repository defaults to 30 minutes. Embedded applications still fall back toserver.servlet.session.timeout. WAR timeout fix - Fixed POF round trips for
UsernamePasswordAuthenticationTokenwith erased credentials or mixed authority types and preserved its authentication state. Authentication serialization fix - Retained Java parameter names in production classes so Spring can resolve named arguments. Compiler configuration
- Fixed the Spring Cloud Config sample’s JSON responses by copying lazy entity collections before serialization. The sample now accepts the Git repository URI via
CONFIG_SERVER_GIT_URI. Response fix · Git configuration
Documentation
- The upgrade guide covers dependency changes, POF registration, hardened-mode permissions, and session cut over. If you use POF for sessions, review the new registrations for
SessionResetEntryProcessorand Spring Security 7 factor authorities. Mixed 4.x/5.x access to the same session cache and rollback after 5.x writes remain unqualified. - The compatibility guide lists the supported Java and Coherence combinations. The hardened Coherence CE 26.10 test lane uses Java 21. Supported commercial runtimes are 15.1.1.0 on Java 17 or 21 and 26.1.0.0 on Java 21.
Dependency Upgrades
- Spring Framework
7.0.9, Spring Boot4.0.8, Spring Data BOM2025.1.7, Spring Cloud2025.1.3, Spring Session4.0.5, and Spring Security7.0.7. - Updated the Jakarta EE baseline to
11. Servlet deployments require Servlet6.1. - Samples use Jackson
3.1.7,resilience4j-spring-boot42.4.0, and the Hibernate 7 cache adapter from Coherence Hibernate4.1.0. Applications using that adapter need to select a compatible Hibernate ORM7.4.xversion explicitly.
Full Changelog: v4.3.1...v5.0.0