Creating the Turbine server microservice

Let's create our Turbine server. We will create a standard Spring Boot Application with a couple of annotations to enable Turbine stream and discovery client, as well.

The main class should be:

package springfive.airline.turbine;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient;import org.springframework.cloud.netflix.turbine.stream.EnableTurbineStream;@EnableEurekaClient@EnableTurbineStream@SpringBootApplicationpublic class AirlineTurbineApplication { public static void main(String[] args) {    SpringApplication.run(AirlineTurbineApplication.class, args); }}

As we can ...

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.