Restclient Articles
2 articles about Restclient. Explore Spring Boot implementation, design, and operations across related topics.
-
Implementing a Synchronous HTTP Client with RestClient in Spring Boot 3.2 - Migrating from RestTemplate/WebClient
A hands-on guide to implementing RestClient, added in Spring Boot 3.2. This article covers GET/POST/PUT/DELETE with the fluent API, error handling with onStatus, connect/read timeouts, testing with MockRestServiceServer, migration steps from RestTemplate, and how to choose between WebClient and @HttpExchange.
-
Building a Declarative HTTP Client with Spring Boot's HTTP Interface (@HttpExchange)
A walkthrough on implementing a declarative HTTP client using Spring Framework 6's standard @HttpExchange and HttpServiceProxyFactory, without adding Spring Cloud dependencies. Covers RestClient/WebClient adapter configuration, error handling, and how to choose between this approach and OpenFeign with practical examples.