February 2018
Intermediate to advanced
356 pages
9h 10m
English
Now, we will run our Mail microservice. Find the MailServiceApplication class, the main class of our project. The main class should look like this:
package springfive.airline.mailservice;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.cloud.netflix.eureka.EnableEurekaClient;import org.springframework.cloud.netflix.hystrix.EnableHystrix;import org.springframework.cloud.netflix.zuul.EnableZuulProxy;@EnableHystrix@EnableZuulProxy@EnableEurekaClient@SpringBootApplicationpublic class MailServiceApplication { public static void main(String[] args) { SpringApplication.run(MailServiceApplication.class, args); }}
It is a standard ...
Read now
Unlock full access