Running the plane microservice

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. ...

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.