Created
June 10, 2018 09:07
-
-
Save OmarElgabry/2f18435f39d3e39089e226908158335a to your computer and use it in GitHub Desktop.
Gateway Main Class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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