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