Skip to content

v5.0.0

Latest

Choose a tag to compare

@vasac vasac released this 20 Nov 12:27

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-starter for Spring Boot servlet applications, including WAR deployments. The general coherence-spring-boot-starter now treats coherence-spring-session and spring-boot-session as 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-micrometer and supply a MeterRegistry through 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.timeout explicitly in a WAR, where the repository defaults to 30 minutes. Embedded applications still fall back to server.servlet.session.timeout. WAR timeout fix
  • Fixed POF round trips for UsernamePasswordAuthenticationToken with 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 SessionResetEntryProcessor and 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 Boot 4.0.8, Spring Data BOM 2025.1.7, Spring Cloud 2025.1.3, Spring Session 4.0.5, and Spring Security 7.0.7.
  • Updated the Jakarta EE baseline to 11. Servlet deployments require Servlet 6.1.
  • Samples use Jackson 3.1.7, resilience4j-spring-boot4 2.4.0, and the Hibernate 7 cache adapter from Coherence Hibernate 4.1.0. Applications using that adapter need to select a compatible Hibernate ORM 7.4.x version explicitly.

Full Changelog: v4.3.1...v5.0.0