Monday 30 November 2026 Edition compiled at 07.45 NL EN FR
← Tech · Programming languages
Tech · Programming languagesJava

RestTemplate gets its notice: Spring Boot 4.2 steers Java developers to RestClient and now also speaks AMQP 1.0

The new version of the widely used Java framework brings faster startup for executable jars and OpenTelemetry conventions, but also quiet changes that may surprise during an upgrade.

· latest source update do · 3 sources · Spring, LavX News, Vinish.Dev · Compiled with AI
Illustration for this article

The Spring team has released Spring Boot 4.2.0, Moritz Halbritter writes on the official Spring blog. The most notable announcement is that support for RestTemplate and TestRestTemplate is being deprecated. Spring Framework 7.1 had already deprecated RestTemplate with a view to removing it, LavX News explains; Boot now follows with its builder, customizer and auto-configuration. Developers are advised to move to RestClient and, for tests, RestTestClient. According to Vinish.Dev, the old support still works in 4.2. Apache Pulsar support is also deprecated, now that the project has moved to the Apache Software Foundation.

New is support for AMQP 1.0, both generic and tailored to RabbitMQ. LavX News warns that the starter changes role in the process: anyone who wants to keep the classic RabbitMQ integration must now add a separate starter, and classes move to a different package. Applications can also opt in to OpenTelemetry semantic conventions, which according to both tech sites can break existing dashboards and alerts. LDAP connections get SSL bundles, and buildpacks can share their cache between CI machines via a container registry and default to Ubuntu 26.04.

Executable jars start faster because Boot searches nested archives directly, although the team gives no figures. LavX News points to several defaults that change: WebFlux multipart requests are now limited in number of parts and size, and the X-Forwarded-Prefix header is ignored by default, which can produce wrong links behind a proxy. Those not ready to move can, according to Vinish.Dev, switch to maintenance releases 4.1.3 or 4.0.10, which came out a day later with 112 and 97 fixes respectively.

Spotted a mistake in this article? Let us know.