February 2018
Intermediate to advanced
356 pages
9h 10m
English
Before we run the plane microservice, we will create the plane microservice's main class. It will be responsible for starting the application. To do that, we need to include a couple of Spring Annotations. The class implementation can be like this:
package springfive.airline.airlineplanes;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient;import org.springframework.cloud.netflix.zuul.EnableZuulProxy;@EnableZuulProxy@EnableEurekaClient@SpringBootApplicationpublic class AirlinePlanesApplication { public static void main(String[] args) { SpringApplication.run(AirlinePlanesApplication. ...