We will use the Zuul server to act as an API gateway for our applications. Now it's time to create our project. As there is no relevant difference involved in creating this project, we will take a look at specific Zuul parts.
The dependency required is:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-zuul</artifactId></dependency>
It will configure for us the Zuul server dependencies.
Now we can add the project's main class. The class should be like this:
package springfive.airline.edge;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient ...