Tag

RestTemplate

0 views collected around this technical thread.

Architecture Digest
Architecture Digest
Nov 1, 2024 · Backend Development

Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling

Spring WebClient, the reactive replacement for the deprecated RestTemplate in Spring 5+, offers non‑blocking I/O, functional style, streaming support, and improved error handling; this article explains its benefits, demonstrates synchronous and asynchronous request patterns, timeout configuration, and comprehensive error processing with code examples.

ErrorHandlingHTTPJava
0 likes · 12 min read
Using Spring WebClient Instead of RestTemplate: Benefits, Code Samples, and Error Handling
Code Ape Tech Column
Code Ape Tech Column
Oct 31, 2024 · Backend Development

Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide

This article explains why RestTemplate is deprecated in Spring Framework 5+, outlines the advantages of the reactive WebClient such as non‑blocking I/O, functional style, streaming and improved error handling, and provides complete Java code examples for creating, configuring, and using WebClient synchronously and asynchronously, including timeout and error management.

ErrorHandlingHTTPJava
0 likes · 13 min read
Migrating from RestTemplate to WebClient in Spring Framework: Benefits and Implementation Guide
Top Architect
Top Architect
Aug 16, 2024 · Backend Development

Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign Approaches

This article demonstrates three methods for invoking external services in a Spring Boot application—using raw HttpClient, the RestTemplate utility, and Feign clients—providing code examples, configuration steps, and tips for handling headers and tokens.

APIHttpClientJava
0 likes · 11 min read
Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign Approaches
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 11, 2024 · Backend Development

10 Ways to Call Third-Party APIs in Spring Boot 3.3 – Full Code Guide

This article reviews ten practical methods for invoking third-party HTTP services in Spring Boot 3.3, covering plain JDK URL, HttpClient, Apache HttpClient, OkHttp, RestTemplate, WebClient, RestClient, Http Interface, OpenFeign, and Gateway proxy, each with code samples and key advantages.

API IntegrationHTTP ClientJava
0 likes · 13 min read
10 Ways to Call Third-Party APIs in Spring Boot 3.3 – Full Code Guide
Java Architect Essentials
Java Architect Essentials
Jun 8, 2024 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article demonstrates three approaches for invoking external services in Spring Boot applications—using raw HttpClient, the RestTemplate utility, and Feign clients—providing code samples, configuration steps, and tips for handling headers and tokens.

HttpClientJavaRestTemplate
0 likes · 10 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Top Architect
Top Architect
May 7, 2024 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article demonstrates three practical approaches for invoking external services in a Spring Boot application—using a raw HttpClient, the RestTemplate utility, and the Feign declarative client—complete with code examples, configuration steps, and tips for handling headers and tokens.

API IntegrationHttpClientJava
0 likes · 11 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Java Captain
Java Captain
Jan 31, 2024 · Backend Development

Replacing OpenFeign with Apache HttpClient, OkHttp, and RestTemplate in Spring Applications

This article explains why and how to replace OpenFeign with native Spring HttpInterface alternatives such as Apache HttpClient, OkHttp, and RestTemplate, covering security motivations, configuration details, code examples, and practical recommendations for microservice remote calls.

HttpClientJavaMicroservices
0 likes · 12 min read
Replacing OpenFeign with Apache HttpClient, OkHttp, and RestTemplate in Spring Applications
Java Tech Enthusiast
Java Tech Enthusiast
Jan 8, 2024 · Backend Development

Migrating from RestTemplate to Spring WebClient: Benefits and Code Samples

Spring developers should replace the deprecated RestTemplate with the reactive WebClient, which offers non‑blocking I/O, a fluent functional API, streaming support, richer error handling and configurable timeouts, while still allowing synchronous calls via block(), as demonstrated by practical Spring Boot 3 code examples.

HTTPJavaReactive
0 likes · 11 min read
Migrating from RestTemplate to Spring WebClient: Benefits and Code Samples
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.

Http InterfaceJavaREST
0 likes · 12 min read
Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient
Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.

HTTPHttpClientJava
0 likes · 8 min read
Various Ways to Send HTTP Requests in Java
Java Architect Essentials
Java Architect Essentials
Oct 26, 2023 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article demonstrates how to invoke external services from a Spring Boot application by using raw HttpClient, the RestTemplate utility, and Feign client, providing complete code examples, configuration steps, and tips for handling headers and tokens.

APIHttpClientJava
0 likes · 9 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Selected Java Interview Questions
Selected Java Interview Questions
Oct 23, 2023 · Backend Development

Why RestTemplate Is Deprecated and How to Migrate to Spring WebClient

This article explains why Spring's RestTemplate has been deprecated, outlines the advantages of the non‑blocking WebClient, and provides detailed migration examples—including GET, POST, error handling, streaming, retries, custom configurations, and best‑practice guidelines for using WebClient in backend development.

Backend DevelopmentJavaReactive Programming
0 likes · 16 min read
Why RestTemplate Is Deprecated and How to Migrate to Spring WebClient
Code Ape Tech Column
Code Ape Tech Column
Oct 6, 2023 · Backend Development

Using Spring WebClient Instead of RestTemplate: Advantages and Code Examples

This article explains why RestTemplate is deprecated in Spring 5+, introduces the reactive WebClient as its replacement, outlines its advantages such as non‑blocking I/O and functional style, and provides detailed code examples for creating a client, performing synchronous and asynchronous requests, handling errors, and configuring timeouts.

HTTPJavaReactive
0 likes · 10 min read
Using Spring WebClient Instead of RestTemplate: Advantages and Code Examples
Selected Java Interview Questions
Selected Java Interview Questions
Sep 11, 2023 · Backend Development

Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot

This article explains microservice service‑splitting principles, demonstrates a demo project with separate order and user services, and shows how to implement remote calls between them using Spring Boot's RestTemplate, including code examples and provider‑consumer concepts.

JavaMicroservicesRemote Call
0 likes · 9 min read
Microservice Service Splitting Principles and Remote Call Implementation with Spring Boot
Top Architect
Top Architect
Aug 16, 2023 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article explains how to invoke external services from a Spring Boot application using three approaches—raw HttpClient, Spring's RestTemplate, and Feign—providing detailed code examples, configuration steps, and tips for handling headers and tokens.

HttpClientJavaRestTemplate
0 likes · 12 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Architect's Guide
Architect's Guide
Aug 6, 2023 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article demonstrates three methods for invoking external services in Spring Boot applications—using raw HttpClient, the RestTemplate utility, and Feign clients—providing code examples, configuration steps, and usage details for each approach in production.

API IntegrationHttpClientRestTemplate
0 likes · 11 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Architecture Digest
Architecture Digest
Jul 10, 2023 · Backend Development

Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article explains how to invoke external services from a Spring Boot application using three approaches—raw HttpClient requests, Spring's RestTemplate utilities, and Feign clients—providing code examples, configuration steps, and tips for handling headers and tokens.

API IntegrationHttpClientJava
0 likes · 9 min read
Calling External APIs in Spring Boot: HttpClient, RestTemplate, and Feign
Architect's Guide
Architect's Guide
Jun 5, 2023 · Backend Development

SpringBoot External API Calls: HttpClient, RestTemplate, and Feign Integration

This article explains how to invoke external APIs in a SpringBoot application using three approaches—raw HttpClient, RestTemplate, and Feign—detailing configuration, code examples for GET and POST requests, token handling, and header interception.

HttpClientJavaRestTemplate
0 likes · 9 min read
SpringBoot External API Calls: HttpClient, RestTemplate, and Feign Integration
IT Architects Alliance
IT Architects Alliance
Apr 20, 2023 · Backend Development

Using Spring Boot to Call External APIs: HttpClient, RestTemplate, and Feign

This article explains how to invoke external services from a Spring Boot application using three approaches—raw HttpClient, Spring's RestTemplate, and Feign client—providing detailed code examples, configuration steps, and tips for handling headers and tokens.

HttpClientJavaRestTemplate
0 likes · 10 min read
Using Spring Boot to Call External APIs: HttpClient, RestTemplate, and Feign
Top Architect
Top Architect
Apr 19, 2023 · Backend Development

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article explains three methods for invoking external services in Spring Boot applications—using a raw HttpClient, the RestTemplate utility, and Feign clients—providing code examples, configuration steps, and tips for handling headers and tokens.

HttpClientJavaRestTemplate
0 likes · 8 min read
Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign