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