zhzhenqin eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
..
ApiGatewayConfig.java eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
ApiRoute.java eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
ApiRouteLocator.java eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
ApiRouteProperties.java eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
README.md eceac3819e 增加 excel 导入导出,增加 zuul 路由 11 月之前
WebSocketProxyFilter.java 65d791c3f6 完善更多案例 1 年之前

README.md

POM Import

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-netflix-zuul</artifactId>
    <version>2.1.6.RELEASE</version>
</dependency>

配置

datasophon:
  # 这里的路由地址访问实际是:/${contextPath}/${servletPath}
  servletPath: "/"
  excludePatterns: "/api/user/**,/api/frame/**"
  routers:
    d:
      api: /d/**
      url: http://192.168.1.10:3000/d
    api:
      api: /api/**
      url: http://192.168.1.10:3000/api
    public:
      api: /public/**
      url: http://192.168.1.10:3000/public

在 SpringBoot Main 中加上启用注解

@EnableZuulProxy