├── README.md ├── book ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── sinosoft │ │ └── book │ │ └── BookApplication.java │ └── resources │ └── application.properties ├── gateway ├── pom.xml └── src │ └── main │ ├── java │ └── com │ │ └── sinosoft │ │ └── gateway │ │ ├── GatewayApplication.java │ │ ├── config │ │ └── CustomZuulConfig.java │ │ ├── event │ │ └── RefreshRouteService.java │ │ ├── web │ │ └── DemoController.java │ │ └── zuul │ │ └── CustomRouteLocator.java │ └── resources │ ├── application.properties │ └── db │ └── schema.sql └── pom.xml /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/README.md -------------------------------------------------------------------------------- /book/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/book/pom.xml -------------------------------------------------------------------------------- /book/src/main/java/com/sinosoft/book/BookApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/book/src/main/java/com/sinosoft/book/BookApplication.java -------------------------------------------------------------------------------- /book/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8090 -------------------------------------------------------------------------------- /gateway/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/pom.xml -------------------------------------------------------------------------------- /gateway/src/main/java/com/sinosoft/gateway/GatewayApplication.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/java/com/sinosoft/gateway/GatewayApplication.java -------------------------------------------------------------------------------- /gateway/src/main/java/com/sinosoft/gateway/config/CustomZuulConfig.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/java/com/sinosoft/gateway/config/CustomZuulConfig.java -------------------------------------------------------------------------------- /gateway/src/main/java/com/sinosoft/gateway/event/RefreshRouteService.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/java/com/sinosoft/gateway/event/RefreshRouteService.java -------------------------------------------------------------------------------- /gateway/src/main/java/com/sinosoft/gateway/web/DemoController.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/java/com/sinosoft/gateway/web/DemoController.java -------------------------------------------------------------------------------- /gateway/src/main/java/com/sinosoft/gateway/zuul/CustomRouteLocator.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/java/com/sinosoft/gateway/zuul/CustomRouteLocator.java -------------------------------------------------------------------------------- /gateway/src/main/resources/application.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/resources/application.properties -------------------------------------------------------------------------------- /gateway/src/main/resources/db/schema.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/gateway/src/main/resources/db/schema.sql -------------------------------------------------------------------------------- /pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lexburner/zuul-gateway-demo/HEAD/pom.xml --------------------------------------------------------------------------------