This commit is contained in:
tanghc
2019-07-25 13:37:26 +08:00
parent 709186b0da
commit 55ca508905
11 changed files with 179 additions and 76 deletions

View File

@@ -2,10 +2,13 @@ package com.gitee.sop.gateway;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
// 开启网关功能
@EnableZuulProxy
// 扫描自定义的servlet类上标注@WebServle
@ServletComponentScan
@SpringBootApplication
public class SopGatewayApplication {