Skip to content

Instantly share code, notes, and snippets.

@OmarElgabry
Created June 10, 2018 09:07
Show Gist options
  • Select an option

  • Save OmarElgabry/2f18435f39d3e39089e226908158335a to your computer and use it in GitHub Desktop.

Select an option

Save OmarElgabry/2f18435f39d3e39089e226908158335a to your computer and use it in GitHub Desktop.
Gateway Main Class
package com.eureka.zuul;
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;
@SpringBootApplication
@EnableEurekaClient // It acts as a eureka client
@EnableZuulProxy // Enable Zuul
public class SpringZuulApplication {
public static void main(String[] args) {
SpringApplication.run(SpringZuulApplication.class, args);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment