NextStack

spring-boot v4.2.0-M1

pre-release PublishedAug 20, 2026 Sourcespring-projects/spring-boot

spring-boot v4.2.0-M1

:star: New Features

  • Refine Forwarded headers configuration for Jetty servers #51148
  • Disable Micrometer global registry in tests by default #51142
  • Use GracefulHandler rather than StatisticsHandler to coordinate graceful shutdown of Jetty #51128
  • Deprecate RestTemplate support #51118
  • Update properties for forwarded headers to adapt to Reactor Netty changes #51031
  • Update properties for forwarded headers to adapt to Spring Framework changes #51030
  • Remove APIs that were deprecated for removal in 4.2 #50955
  • Add support for image-based build caches #50899
  • Provide plugin management for hibernate-maven-plugin #50892
  • Support timeout option in RetryPolicySettings #50891
  • Add self-reference to ApplicationContextAssertProvider #50500
  • Add configuration property for leaveGroupOnClose in Kafka Streams #50432
  • Expose Path getters on ApplicationHome and ApplicationTemp #50194
  • Introduce RabbitMQ AMQP 1.0 client support #49857
  • Introduce Generic AMQP 1.0 client support #49678
  • Rename spring-boot-amqp to spring-boot-rabbitmq #49677
  • Add support for AMQP 1.0 #49619
  • Deprecate TestRestTemplate in favor of RestTestClient #46632
  • Take target/test-classes into account when spring-boot.run.useTestClasspath is in effect #36115

:lady_beetle: Bug Fixes

  • Structured logging: a failed JSON encode corrupts the next log event written on the same thread #51371
  • Kafka consumer-specific security protocol is not taken into account #51370
  • Exposing gRPC test server port should backoff if gRPC is not present #51291
  • Micrometer registries pin the application context #51136
  • Temporary file is not deleted when ExportedImageTar construction fails #51133
  • spring.grpc.server.health.include-overall-health is not taken into account #51106
  • Metadata annotation processor ignores getter-level @NestedConfigurationProperty for records #51099
  • spring-boot-h2-console pulls servlet-api as transitive dependency #51096
  • PropertiesLauncher does not log nested archive paths #51090
  • Methods that return the result of Map#remove are not declared with a @Nullable return type #51088
  • NativeImageResourceProvider flattens Flyway migration paths in subdirectories #50965
  • Fix ordering of Kotlinx Serialization CodecCustomizer #50962
  • JarFile is not closed when finding main class from archive #50960

:notebook_with_decorative_cover: Documentation

  • Description of spring.graphql.websocket.connection-init-timeout does not render correctly in the reference guide #51364
  • spring.profiles.group should have a ‘spring-profile-name’ hint provider #51285
  • Remove reference to removed InfluxDB auto-configuration #51177
  • Use JacksonJsonSerde in Kafka Streams documentation #51162
  • Document alternatives to HttpMessageConverters #51130
  • Fix stale type reference for OTLP logging transport metadata #51126
  • Metadata for spring.test.mockmvc.htmlunit.url declares the wrong type #51116
  • Caching documentation refers to AutoConfigureCache by its pre-4.0 package #51114
  • Fix examples in Metadata Format documentation chapter #51103
  • Improve discoverability of the AOT Cache How-to guides #51001

:hammer: Dependency Upgrades

:heart: Contributors

Thank you to all the contributors who worked on this release:

@Chrisg2000, @DragonFSKY, @LordKay-sudo, @MacAlsandair, @SebTardif, @TYsewyn, @dmitrysulman, @eddumelendez, @filiphr, @ghost, @msridhar, @ngocnhan-tran1996, @scordio, @skdas20, @sourabh-bhattacharjee, @taasjord, @vvzvvv, @wantaekchoi, @xfocus3, and @zxuhan


Source spring-projects/spring-boot · v4.2.0-M1 · 2026-08-20 · upstream release

Mirrored verbatim for indexing. All rights belong to the upstream project.

Release notes are published by the upstream project and mirrored here for indexing. All rights belong to their authors.