Tagged articles
RestClient
25 articles · Page 1 of 1
Spring Boot 4.1 introduces InetAddressFilter to block internal network access at the HTTP client level, replacing scattered string checks with a centralized allowlist approach. The article demonstrates configuring RestClient.Builder for external-only access, adding URI validation, disabling auto-redirects, setting timeouts, limiting response size, and enforcing secure patterns via tests and code reviews.
Backend SecurityHTTP Client SecurityInetAddressFilter
0 likes · 15 min read

The article demonstrates how Spring Boot 4.1's new InetAddressFilter.externalAddresses() simplifies SSRF protection for user-supplied URLs, replacing manual IP checks with a centralized HTTP client filter, while also covering URL validation, redirect handling, timeouts, response size limits, and testing strategies to secure link preview and similar features.
InetAddressFilterJavaRestClient
0 likes · 14 min read

The author shares practical experience replacing OpenFeign with Spring's @HttpExchange during a Spring Boot 4 upgrade, demonstrating configuration simplification, authentication handling via RestClient interceptors, error mapping with defaultStatusHandler, and the decision to coexist both clients rather than force a full migration.
@HttpExchangeHTTP ClientMigration Strategy
0 likes · 15 min read

This article details ten deprecated Spring Boot patterns — from field injection and @Value overuse to WebSecurityConfigurerAdapter and RestTemplate — and shows the recommended modern alternatives for Spring Boot 3.x and 4.x migrations.
ConfigurationPropertiesJUnit 5Jakarta EE
0 likes · 11 min read

The author shares their experience replacing OpenFeign with Spring's @HttpExchange during a Spring Boot 4 upgrade, demonstrating how interface definitions simplify but cross-cutting concerns like authentication, timeouts, and error handling remain, leading to a pragmatic coexistence of both tools based on project needs.
@HttpExchangeAuthenticationGateway Pattern
0 likes · 15 min read

Spring Boot 4.2.0-M1 milestone release deprecates RestTemplate in favor of RestClient, adds AMQP 1.0 support, introduces Buildpacks image-layer caching, removes deprecated APIs, fixes numerous bugs including structured logging and Kafka consumer security, and upgrades 20+ dependencies including Hibernate, Kafka, Kotlin, and Tomcat.
AMQP 1.0BuildpacksDependency Upgrades
0 likes · 7 min read

Spring Boot 4.2 deprecates RestTemplate and its related auto‑configuration, prompting a migration to the new synchronous RestClient; the author details the reasons, code transformations, incremental migration strategy, handling of HTTP errors, and the emerging Spring HTTP Service Client as a modern replacement.
HTTP ClientJavaRestClient
0 likes · 11 min read

Spring 7 removes Feign as the default for declarative HTTP calls, introducing @HttpExchange and @ImportHttpServices so developers can use spring‑web’s @GetExchange with RestClient or WebClient, while keeping configuration and security aligned with Spring Boot 4 and Security 7.
@HttpExchange@ImportHttpServicesDeclarative HTTP
0 likes · 3 min read

The article explains how to eliminate boilerplate when using Spring Boot 3.5.0 RestClient by introducing two custom annotations, @ClientEnhance and @ClientConfig, together with an auto‑configuration class that injects logging interceptors and configurable timeouts into selected RestClient.Builder beans, enabling a non‑intrusive, declarative enhancement.
AutoConfigurationCustom AnnotationJava
0 likes · 8 min read

Spring Boot Admin 4.0.0 launches with a revamped core framework, Java 25 support, a new PrimeUI theme, RestClient‑based communication, JSpecify null‑safety, Jackson 3 migration, and a temporary Jolokia limitation, offering a comprehensive upgrade for Spring‑based monitoring.
RestClientSpring Boot Adminbackend-monitoring
0 likes · 8 min read

This article walks through Spring Boot 4's built‑in HTTP Interface, showing how to replace RestTemplate/WebClient with a type‑safe, annotation‑driven RestClient, covering Maven setup, DTO and interface definitions, configuration, error handling, header injection, timeout control, reactive alternatives, design principles, and a side‑by‑side comparison with the legacy approach.
JavaRestClientSpring Boot
0 likes · 11 min read

Spring’s team announced that RestTemplate will be deprecated in Spring Framework 7.0 and removed later, outlining its limitations and presenting the new RestClient as a modern, fluent alternative, while also recommending WebClient for reactive scenarios and offering migration strategies for existing projects.
HTTP ClientJavaRestClient
0 likes · 6 min read

Spring announced that RestTemplate will be deprecated in Spring Framework 7.0 and removed later, outlining a migration path to the newer RestClient for synchronous use and WebClient for reactive scenarios, while providing a timeline and practical guidance for developers.
BackendJavaRestClient
0 likes · 6 min read

Spring Framework 7 will deprecate RestTemplate, outlining a migration timeline, the shortcomings of the classic HTTP client, and introducing RestClient and WebClient as modern alternatives for synchronous and reactive applications, while providing guidance for both new and legacy projects.
JavaRestClientRestTemplate
0 likes · 6 min read

This article compares Feign and Spring 6's @HttpExchange for remote service calls, walks through practical examples—including interface definition, proxy creation, various client options, testing, reactive returns, custom argument resolvers, and error handling—while providing complete code snippets for Spring Boot 3.4.2.
FeignRestClientWebClient
0 likes · 9 min read

This article walks through Spring Boot 3.2.5 enhancements including multithreaded bean initialization, the new @Fallback annotation, handling duplicate bean names, RestClient.create(URI) usage, header binding to records, expanded task‑scheduler metadata, and a host of other backend improvements.
AnnotationsMultithreadingRestClient
0 likes · 9 min read

This article introduces Spring Boot's new RestClient, compares it with RestTemplate and WebClient, and provides detailed code examples for creating clients, performing GET/POST/PUT/DELETE requests, handling errors, customizing interceptors, and enabling load‑balanced service discovery.
HTTP ClientRestClientSpring Boot
0 likes · 11 min read

Spring offers multiple HTTP clients—RestTemplate, WebClient, and the newer RestClient—each with distinct features, performance characteristics, and suitability for different scenarios, and this guide compares their core capabilities, advantages, drawbacks, and best-use cases to help developers select the optimal client for their projects.
BackendHTTP ClientJava
0 likes · 15 min read

This guide explains how to create and configure Spring Boot's RestClient, covering instance creation, request building, header and body handling, response retrieval, error processing, the exchange method, and available client request factories for robust synchronous HTTP communication.
APIHTTPJava
0 likes · 7 min read

This guide walks through Spring 6’s new capabilities—including Java 17 baseline, Jakarta namespace migration, HTTP interface proxies with @HttpExchange, WebClient integration via JDK HttpClient, internationalized ProblemDetail handling, the RestClient API, and executing asynchronous tasks on virtual threads—all demonstrated with concise code examples.
HTTPJavaProblemDetail
0 likes · 7 min read

Spring 6 offers four powerful ways to perform remote HTTP calls—WebClient, RestTemplate, HTTP Interface, and RestClient—each with distinct APIs, configuration options, and usage patterns, and this guide walks through their setup, method signatures, request handling, and error management for Java developers.
JavaRESTRestClient
0 likes · 12 min read

The article explains how our driver‑passenger matching service migrated from load‑balanced Elasticsearch access to a direct RestClient, then automated node discovery using the built‑in Sniffer and SniffOnFailureListener, detailing its scheduling, request logic, and how this eliminates manual IP management while keeping the client in sync with cluster topology.
Distributed SearchElasticsearchJava
0 likes · 11 min read

This guide explains how to use Spring 6.1's new RestClient for synchronous HTTP calls, covering setup, request building, response handling, data conversion, error processing, and advanced exchange methods with full code examples.
HTTPJavaRestClient
0 likes · 10 min read

This guide walks you through Spring 6.1's new RestClient, covering project setup, global client creation, data retrieval, posting, deletion, error handling, and advanced exchange methods with clear code examples for modern Java backend development.
HTTPRestClientSpring
0 likes · 9 min read

This article introduces Spring 6.1’s new synchronous RestClient, showing how to perform basic GET and POST requests, convert responses to objects, handle errors with onStatus, and use the advanced exchange method for custom request‑response processing, positioning RestClient as a modern replacement for RestTemplate.
HTTPJavaRestClient
0 likes · 6 min read
