Spring Cloud API Gateway

In this tutorial, you will learn how to create a very simple Spring Cloud API Gateway Global Pre-filter and Post filter classes. Global filters are executed for every route defined in the API Gateway. The main difference between pre-filter and post-filter class is that the pre-filter code is executed before Spring Cloud API Gateway routes the request…

Read More Spring Cloud API Gateway Global Filter Example

One of the ways to make sure that an HTTP request to a web service endpoint contains an Authorization JWT token is to configure a gateway route to require an Authorization header.  This way, if the HTTP request does not contain an Authorization header, Spring Cloud API Gateway will not even route this request to…

Read More The Header Predicate in Spring Cloud API Gateway

In this tutorial, you will learn how to configure your Spring Cloud API Gateway to automatically create routes based on services registered with Discovery clients like Eureka, Consul, or Zookeeper. For a step by step series of video lessons, please check this page: Spring Boot Microservices and Spring Cloud. Enable Discovery Locator A very quick way…

Read More Spring Cloud API Gateway Automatic Mapping of Routes