Running the Spring Cloud Gateway

The project is well-configured, so now it is time to run it. We can use the Java command line or IDE. There is no difference either way. 

The Config Server and Eureka server need to stay up; it is mandatory that the Gateway project works correctly. Then, we can run the project.

Run the project and look at the logs. We can see some interesting stuff, such as the project connecting to the Config Server and download the configuration and after this, it connects to the Eureka server and self-registers. The following diagram explains the application bootstrap flow:

Let's look at what the different flows are and ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.