February 2018
Intermediate to advanced
356 pages
9h 10m
English
There is no secret to this part. The Spring Cloud Gateway works in the same way as the common Spring Boot applications. There is a main class which will start the embedded server and starts the whole application.
Our main class should look like this:
package springfive.airline.gateway;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient;@EnableEurekaClient@SpringBootApplicationpublic class GatewayApplication { public static void main(String[] args) { SpringApplication.run(GatewayApplication.class, args); }}
As we can see, it is a pretty standard Spring Boot application, ...
Read now
Unlock full access