Spring WebClient and OAuth2 Support

2021 VietMX 0

1. Overview Spring Security 5 provides OAuth2 support for Spring Webflux’s non-blocking WebClient class. In this tutorial, we’ll analyze different approaches to access secured resources using this […]

Spring WebClient Filters

2021 VietMX 0

1. Overview In this tutorial, we’re going to explore WebClient filters in Spring WebFlux, a functional, reactive web framework. 2. Request Filters A filter can intercept, examine, and […]

Spring WebClient Requests with Parameters

2021 VietMX 0

1. Overview A lot of frameworks and projects are introducing reactive programming and asynchronous request handling. Consequently, Spring 5 introduced a reactive WebClient implementation as a part of the WebFlux framework. In […]

Spring WebClient vs. RestTemplate

2021 VietMX 0

1. Introduction In this tutorial, we’re going to compare two of Spring’s web client implementations – RestTemplate and new Spring 5’s reactive alternative WebClient. 2. Blocking vs. Non-Blocking […]

Spring RestTemplate Error Handling

2021 VietMX 0

1. Overview In this short tutorial, we’ll discuss how to implement and inject the ResponseErrorHandler interface in a RestTemplate instance – to gracefully handle HTTP errors returned by remote […]

The Guide to RestTemplate

2021 VietMX 0

1. Overview In this tutorial, we’re going to illustrate the broad range of operations where the Spring REST Client — RestTemplate — can be used, and used […]

Test a REST API with Java

2021 VietMX 0

1. Overview This tutorial focuses on the basic principles and mechanics of testing a REST API with live Integration Tests (with a JSON payload). The main goal […]