Skip to main content

Spring Boot 4.1.2

Release Date: October 22, 2026

Overview

Spring Boot 4.1.2 was released on October 22, 2026. This is a maintenance release on the 4.1.x line, published alongside Spring Boot 4.0.9 and the first release candidate of 4.2.0. It contains one new feature, a large batch of bug fixes, documentation corrections, and a substantial set of dependency upgrades. No breaking API changes or deprecations are introduced, and the release is a drop-in replacement for 4.1.1.

New Features

  • Java 27 support in the version enum. TWENTY_SEVEN is added to JavaVersion, so the platform and build tooling recognize Java 27 in addition to the existing entries. Applications targeting Java 27 can now be built and run without working around an unrecognized value in JavaVersion.

Bug Fixes

More than fifty issues are resolved. The fixes most likely to affect production deployments fall into four groups.

  • Configuration property loading. OriginTrackedPropertiesLoader no longer drops properties whose name begins with # or !, and OriginTrackedResource now implements equals correctly. Projects that keep commented sections or history-prefixed keys in properties files should confirm their resolved environment after upgrading.
  • Security and OAuth2. JWTs were rejected when issuer-uri was empty while jwk-set-uri was configured, which made key-only validation setups unusable. The OAuth2 resource server now honors authorities-claim-delimiter when it is set on its own, OAuth2ClientProperties remain available when a user-defined ClientRegistrationRepository bean is present, and ReactiveOAuth2ResourceServerWebSecurityAutoConfiguration now carries the correct condition.
  • Graceful shutdown. Tomcat and Jetty could invoke callbacks with REQUESTS_ACTIVE when stop was called immediately after shutDownGracefully on an idle server, and NettyWebServer could hang under the same sequence. Container teardown and rolling restarts are the scenarios to re-test.
  • Packaging and nested jars. Manifest attributes are now present for nested jars without directory entries, SBOM-related manifest attributes are restored for Maven-packaged wars, and the race condition in NestedJarFileResources that could produce a NullPointerException with uber jars is fixed. Layer temp files and exported image tar files are also cleaned up when creation fails.

Additional fixes cover gRPC client load balancing, gRPC service config durations, Docker Compose credential handling for MongoDB, MariaDB, RabbitMQ, and SQL Server, Elasticsearch URI passwords containing a colon, a MongoDB connection failure when credentials contain a space, Jersey endpoint serialization when Actuator runs on a separate port, Kotlinx Serialization codec customization, the SameSite attribute on reactive session cookies, and incremental Gradle builds losing configuration property descriptions.

Dependency Upgrades

The release bumps a wide set of managed dependencies, including Spring Framework 7.0.10, Spring Security 7.1.2, Spring Data 2026.0.2, Spring Batch 6.0.6, Spring Integration 7.1.2, Spring Kafka 4.1.2, Spring AMQP 4.1.2, Spring GraphQL 2.0.6, and Spring gRPC 1.1.2. Infrastructure components move as well: Tomcat 11.0.27, Jetty 12.1.14, Netty 4.2.19.Final, Hibernate 7.4.13.Final, Hibernate Validator 9.1.5.Final, Jackson 2.21.7 and 3.1.7, Micrometer 1.17.2, Micrometer Tracing 1.7.2, Kafka 4.2.2, Pulsar 4.2.5, Cassandra Driver 4.19.4, PostgreSQL 42.7.14, SLF4J 2.0.20, Lombok 1.18.48, and FreeMarker 2.3.35.

Documentation

Documentation updates include Java 27 support, InetAddressFilter limitations with proxy servers, baggage propagation over gRPC, SAML2 back-off in WebFlux security, corrected defaults for spring.test.database.replace, corrected actuator endpoint property names, and removal of retired AppOptics references.

Upgrade Notes

Update the parent or the Spring Boot plugin to 4.1.2 and let the BOM manage the transitive versions. Teams that override managed dependency versions explicitly should review the list above, since several of the changes are in libraries that also received security and correctness fixes. Spring Boot 4.2 remains at the release candidate stage, so 4.1.2 is the correct production target for this cycle.

Other Versions

We use cookies for ads and analytics.