# Spring Boot v4.2.0-M1 - Product: Spring Boot (https://whatsnew.fyi/product/spring-boot) - Vendor: Broadcom - Date: 2026-08-20 - Version: v4.2.0-M1 - Original notes: https://github.com/spring-projects/spring-boot/releases/tag/v4.2.0-M1 - Permalink: https://whatsnew.fyi/product/spring-boot/releases/v4.2.0-m1 - Labels: Pre-release What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- ##### :star: New Features - Refine Forwarded headers configuration for Jetty servers [#51148](https://github.com/spring-projects/spring-boot/issues/51148) - Disable Micrometer global registry in tests by default [#51142](https://github.com/spring-projects/spring-boot/pull/51142) - Use GracefulHandler rather than StatisticsHandler to coordinate graceful shutdown of Jetty [#51128](https://github.com/spring-projects/spring-boot/pull/51128) - Deprecate RestTemplate support [#51118](https://github.com/spring-projects/spring-boot/issues/51118) - Update properties for forwarded headers to adapt to Reactor Netty changes [#51031](https://github.com/spring-projects/spring-boot/issues/51031) - Update properties for forwarded headers to adapt to Spring Framework changes [#51030](https://github.com/spring-projects/spring-boot/issues/51030) - Remove APIs that were deprecated for removal in 4.2 [#50955](https://github.com/spring-projects/spring-boot/issues/50955) - Add support for image-based build caches [#50899](https://github.com/spring-projects/spring-boot/pull/50899) - Provide plugin management for hibernate-maven-plugin [#50892](https://github.com/spring-projects/spring-boot/pull/50892) - Support timeout option in RetryPolicySettings [#50891](https://github.com/spring-projects/spring-boot/pull/50891) - Add self-reference to ApplicationContextAssertProvider [#50500](https://github.com/spring-projects/spring-boot/pull/50500) - Add configuration property for leaveGroupOnClose in Kafka Streams [#50432](https://github.com/spring-projects/spring-boot/pull/50432) - Expose Path getters on ApplicationHome and ApplicationTemp [#50194](https://github.com/spring-projects/spring-boot/pull/50194) - Introduce RabbitMQ AMQP 1.0 client support [#49857](https://github.com/spring-projects/spring-boot/issues/49857) - Introduce Generic AMQP 1.0 client support [#49678](https://github.com/spring-projects/spring-boot/issues/49678) - Rename spring-boot-amqp to spring-boot-rabbitmq [#49677](https://github.com/spring-projects/spring-boot/issues/49677) - Add support for AMQP 1.0 [#49619](https://github.com/spring-projects/spring-boot/issues/49619) - Deprecate TestRestTemplate in favor of RestTestClient [#46632](https://github.com/spring-projects/spring-boot/issues/46632) - spring-boot.run.useTestClasspath does not take target/test-classes in account [#36115](https://github.com/spring-projects/spring-boot/issues/36115) ##### :lady_beetle: Bug Fixes - Structured logging: a failed JSON encode corrupts the next log event written on the same thread [#51371](https://github.com/spring-projects/spring-boot/issues/51371) - Kafka consumer-specific security protocol is not taken into account [#51370](https://github.com/spring-projects/spring-boot/issues/51370) - Exposing gRPC test server port should backoff if gRPC is not present [#51291](https://github.com/spring-projects/spring-boot/issues/51291) - Micrometer registries pin the application context [#51136](https://github.com/spring-projects/spring-boot/issues/51136) - Temporary file is not deleted when ExportedImageTar construction fails [#51133](https://github.com/spring-projects/spring-boot/issues/51133) - spring.grpc.server.health.include-overall-health is not taken into account [#51106](https://github.com/spring-projects/spring-boot/issues/51106) - Metadata annotation processor ignores getter-level `@NestedConfigurationProperty` for records [#51099](https://github.com/spring-projects/spring-boot/issues/51099) - spring-boot-h2-console pulls servlet-api as transitive dependency [#51096](https://github.com/spring-projects/spring-boot/issues/51096) - PropertiesLauncher does not log nested archive paths [#51090](https://github.com/spring-projects/spring-boot/issues/51090) - Methods that return the result of Map#remove are not declared with a `@Nullable` return type [#51088](https://github.com/spring-projects/spring-boot/issues/51088) - NativeImageResourceProvider flattens Flyway migrati _[Truncated at 4000 characters — full notes: https://github.com/spring-projects/spring-boot/releases/tag/v4.2.0-M1]_