Tagged articles

RestClient

25 articles · Page 1 of 1
Java Tech Enthusiast
Java Tech Enthusiast
Oct 2, 2026 · Backend Development

Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients

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
Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients
LuTiao Programming
LuTiao Programming
Sep 24, 2026 · Backend Development

Spring Boot 4.1's InetAddressFilter Finally Blocks SSRF in URL Preview APIs

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
Spring Boot 4.1's InetAddressFilter Finally Blocks SSRF in URL Preview APIs
Java Tech Enthusiast
Java Tech Enthusiast
Sep 10, 2026 · Backend Development

Migrating from Feign to @HttpExchange in Spring Boot 4: Why a Full Rewrite Isn't Worth It

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
Migrating from Feign to @HttpExchange in Spring Boot 4: Why a Full Rewrite Isn't Worth It
LuTiao Programming
LuTiao Programming
Sep 8, 2026 · Backend Development

Migrating from Feign to @HttpExchange in Spring Boot 4: Why It's Not That Simple

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
Migrating from Feign to @HttpExchange in Spring Boot 4: Why It's Not That Simple
Java Architecture Diary
Java Architecture Diary
Aug 25, 2026 · Backend Development

Spring Boot 4.2.0-M1 Released: RestTemplate Deprecated, AMQP 1.0 Support Added, Major Dependency Upgrades

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.0-M1 Released: RestTemplate Deprecated, AMQP 1.0 Support Added, Major Dependency Upgrades
Architect's Tech Stack
Architect's Tech Stack
Jul 22, 2026 · Backend Development

Why Spring 7 Drops Feign in Favor of Built‑in HTTP Annotations

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
Why Spring 7 Drops Feign in Favor of Built‑in HTTP Annotations
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 30, 2026 · Backend Development

Zero‑Intrusion Dynamic Enhancements for Spring Boot RestClient

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
Zero‑Intrusion Dynamic Enhancements for Spring Boot RestClient
LuTiao Programming
LuTiao Programming
Feb 22, 2026 · Backend Development

Mastering Spring Boot 4 Declarative HTTP Client: A Complete Practical Guide

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
Mastering Spring Boot 4 Declarative HTTP Client: A Complete Practical Guide
Architecture Digest
Architecture Digest
Oct 23, 2025 · Backend Development

Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead

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
Why Spring’s RestTemplate Is Being Deprecated and What to Use Instead
Su San Talks Tech
Su San Talks Tech
Oct 6, 2025 · Backend Development

Why RestTemplate Is Being Retired in Spring 7 and What to Use Instead

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
Why RestTemplate Is Being Retired in Spring 7 and What to Use Instead
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 17, 2025 · Backend Development

Mastering @HttpExchange in Spring Boot 3: Real‑World Cases & Advanced Tips

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
Mastering @HttpExchange in Spring Boot 3: Real‑World Cases & Advanced Tips
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 15, 2024 · Backend Development

Spring Boot 3.2.5 New Features: Multithreaded Bean Init, @Fallback, RestClient & More

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.

RestClientSpring BootSpring Framework
0 likes · 9 min read
Spring Boot 3.2.5 New Features: Multithreaded Bean Init, @Fallback, RestClient & More
FunTester
FunTester
Sep 12, 2024 · Backend Development

Choosing the Right Spring HTTP Client: RestTemplate vs WebClient vs RestClient

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
Choosing the Right Spring HTTP Client: RestTemplate vs WebClient vs RestClient
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 16, 2024 · Backend Development

Spring 6: HTTP Interfaces, RestClient, i18n ProblemDetail, Virtual Threads

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: HTTP Interfaces, RestClient, i18n ProblemDetail, Virtual Threads
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 11, 2023 · Backend Development

Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient

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
Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient
HelloTech
HelloTech
Sep 19, 2023 · Databases

Deep Dive into Elasticsearch RestClient Sniffer and Node Discovery Mechanism

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
Deep Dive into Elasticsearch RestClient Sniffer and Node Discovery Mechanism