From the course: Creating Spring Boot Microservices

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Routing to the JPA microservice

Routing to the JPA microservice - Spring Boot Tutorial

From the course: Creating Spring Boot Microservices

Routing to the JPA microservice

- [Instructor] I'm going to take a cookbook approach to setting up routes to our microservices using Spring Cloud Gateway, but I did want to show you how to access more detailed documentation. So in the spring.io website URL, we want to drill down into Cloud. And then within Cloud, we see all the different modules within Cloud. And we are particularly interested in Spring Cloud Gateway. And then, the tab Learn, the reference doc for the latest general availability is where we want to go, and this is going to show you all the detailed ways of configuring a Spring Cloud Gateway. There are two ways to configure a gateway, an external properties file, or via Gateway Java libraries. We're going to use a properties file, similar to what's shown here, a application.yml in our Resources folder. And it is very difficult to perfectly hand code application.yml, because spacing and tabs are very important, so I'm just going to copy and paste it. So, we are currently in 0902B, but I'm going to go…

Contents