├── Alibaba ├── dubbo-spring-cloud-demo │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── dubbo_api │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── dubbo_api │ │ │ │ │ ├── DubboApiApplication.java │ │ │ │ │ └── service │ │ │ │ │ └── HelloService.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_api │ │ │ └── DubboApiApplicationTests.java │ ├── dubbo_consumer │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── dubbo_consumer │ │ │ │ │ ├── DubboConsumerApplication.java │ │ │ │ │ └── controller │ │ │ │ │ └── HelloController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_consumer │ │ │ └── DubboConsumerApplicationTests.java │ ├── dubbo_provider │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── dubbo_provider │ │ │ │ │ ├── DubboProviderApplication.java │ │ │ │ │ └── service │ │ │ │ │ └── HelloServiceI.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_provider │ │ │ └── DubboProviderApplicationTests.java │ ├── mvnw │ ├── mvnw.cmd │ └── pom.xml ├── dubbo-spring-cloud-http │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── dubbo_api │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── dubbo_api │ │ │ │ ├── model │ │ │ │ └── UserModel.java │ │ │ │ └── service │ │ │ │ └── UserService.java │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_api │ │ │ └── DubboApiApplicationTests.java │ ├── dubbo_consumer │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── dubbo_consumer │ │ │ │ │ ├── DubboConsumerApplication.java │ │ │ │ │ └── controller │ │ │ │ │ └── UserController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_consumer │ │ │ └── DubboConsumerApplicationTests.java │ ├── dubbo_provider_web │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── dubbo_provider_web │ │ │ │ │ ├── DubboProviderWebApplication.java │ │ │ │ │ └── service │ │ │ │ │ └── UserServiceI.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── dubbo_provider_web │ │ │ └── DubboProviderWebApplicationTests.java │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── spring_cloud_consumer │ │ ├── .gitignore │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── spring_cloud_consumer │ │ │ │ ├── SpringCloudConsumerApplication.java │ │ │ │ ├── controller │ │ │ │ └── UserController.java │ │ │ │ └── remote │ │ │ │ └── UserRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── spring_cloud_consumer │ │ └── SpringCloudConsumerApplicationTests.java ├── gateway-nacos-config │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── alibaba │ │ │ │ └── gatewaynacosconfig │ │ │ │ ├── GatewayNacosConfigApplication.java │ │ │ │ ├── config │ │ │ │ └── DynamicRoutingConfig.java │ │ │ │ └── entity │ │ │ │ ├── FilterEntity.java │ │ │ │ ├── PredicateEntity.java │ │ │ │ └── RouteEntity.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── alibaba │ │ └── gatewaynacosconfig │ │ └── GatewayNacosConfigApplicationTests.java ├── nacos-config │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── nacosconfig │ │ │ │ ├── NacosConfigApplication.java │ │ │ │ └── controller │ │ │ │ └── ConfigController.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── nacosconfig │ │ └── NacosConfigApplicationTests.java ├── nacos-cosumers │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── spring │ │ │ │ └── nacoscosumers │ │ │ │ ├── NacosCosumersApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── spring │ │ └── nacoscosumers │ │ └── NacosCosumersApplicationTests.java ├── nacos-gateway │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── spring │ │ │ │ └── nacosgateway │ │ │ │ └── NacosGatewayApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── spring │ │ └── nacosgateway │ │ └── NacosGatewayApplicationTests.java ├── nacos-producer │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java ├── seata-nacos-jpa │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── common │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── common │ │ │ │ │ ├── OperationResponse.java │ │ │ │ │ ├── order │ │ │ │ │ └── PlaceOrderRequestVO.java │ │ │ │ │ ├── pay │ │ │ │ │ └── ReduceBalanceRequestVO.java │ │ │ │ │ └── storage │ │ │ │ │ └── ReduceStockRequestVO.java │ │ │ └── resources │ │ │ │ └── application.properties │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── common │ │ │ └── CommonApplicationTests.java │ ├── mvnw │ ├── mvnw.cmd │ ├── order-server │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── orderserver │ │ │ │ │ ├── OrderServerApplication.java │ │ │ │ │ ├── config │ │ │ │ │ ├── DataSourceProxyConfig.java │ │ │ │ │ └── RestTemplateConfig.java │ │ │ │ │ ├── controller │ │ │ │ │ └── OrderController.java │ │ │ │ │ ├── dao │ │ │ │ │ └── OrderDao.java │ │ │ │ │ ├── model │ │ │ │ │ ├── Order.java │ │ │ │ │ └── OrderStatus.java │ │ │ │ │ └── service │ │ │ │ │ ├── OrderService.java │ │ │ │ │ └── impl │ │ │ │ │ └── OrderServiceImpl.java │ │ │ └── resources │ │ │ │ ├── application.yml │ │ │ │ ├── bootstrap.yml │ │ │ │ └── registry.conf │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── orderserver │ │ │ └── OrderServerApplicationTests.java │ ├── pay-server │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── payserver │ │ │ │ │ ├── PayServerApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── DataSourceProxyConfig.java │ │ │ │ │ ├── controller │ │ │ │ │ └── PayController.java │ │ │ │ │ ├── dao │ │ │ │ │ └── AccountDao.java │ │ │ │ │ ├── model │ │ │ │ │ └── Account.java │ │ │ │ │ └── service │ │ │ │ │ ├── PayService.java │ │ │ │ │ └── impl │ │ │ │ │ └── PayServiceImpl.java │ │ │ └── resources │ │ │ │ ├── application.yml │ │ │ │ ├── bootstrap.yml │ │ │ │ └── registry.conf │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── payserver │ │ │ └── PayServerApplicationTests.java │ ├── pom.xml │ ├── sql │ │ ├── account.sql │ │ ├── orders.sql │ │ └── product.sql │ └── storage-server │ │ ├── .gitignore │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── storageserver │ │ │ │ ├── StorageServerApplication.java │ │ │ │ ├── config │ │ │ │ └── DataSourceProxyConfig.java │ │ │ │ ├── controller │ │ │ │ └── StorageController.java │ │ │ │ ├── dao │ │ │ │ └── ProductDao.java │ │ │ │ ├── model │ │ │ │ └── Product.java │ │ │ │ └── service │ │ │ │ ├── StorageService.java │ │ │ │ └── impl │ │ │ │ └── StorageServiceImpl.java │ │ └── resources │ │ │ ├── application.yml │ │ │ ├── bootstrap.yml │ │ │ └── registry.conf │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── storageserver │ │ └── StorageServerApplicationTests.java ├── sentinel-demo │ └── sentinel-demo-basic │ │ ├── .gitignore │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── sentineldemobasic │ │ │ │ ├── SentinelDemoBasicApplication.java │ │ │ │ └── flow │ │ │ │ ├── FlowQpsDemo.java │ │ │ │ └── FlowThreadDemo.java │ │ └── resources │ │ │ └── application.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── sentineldemobasic │ │ └── SentinelDemoBasicApplicationTests.java ├── sentinel-springcloud-high │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── consumer_fallback │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── consumer_fallback │ │ │ │ │ ├── ConsumerFallbackApplication.java │ │ │ │ │ ├── controller │ │ │ │ │ └── HelloController.java │ │ │ │ │ ├── fallback │ │ │ │ │ └── HelloRemoteFallBack.java │ │ │ │ │ ├── remote │ │ │ │ │ └── HelloRemote.java │ │ │ │ │ └── utils │ │ │ │ │ └── ExceptionUtil.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── consumer_fallback │ │ │ └── ConsumerFallbackApplicationTests.java │ ├── consumer_server │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── consumer_server │ │ │ │ │ ├── ConsumerServerApplication.java │ │ │ │ │ ├── controller │ │ │ │ │ └── HelloController.java │ │ │ │ │ └── remote │ │ │ │ │ └── HelloRemote.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── consumer_server │ │ │ └── ConsumerServerApplicationTests.java │ ├── gateway_server │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── gateway_server │ │ │ │ │ ├── GatewayServerApplication.java │ │ │ │ │ ├── config │ │ │ │ │ └── GatewayConfig.java │ │ │ │ │ └── exception │ │ │ │ │ └── JsonSentinelGatewayBlockExceptionHandler.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── gateway_server │ │ │ └── GatewayServerApplicationTests.java │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── provider_server │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── provider_server │ │ │ │ │ ├── ProviderServerApplication.java │ │ │ │ │ └── controller │ │ │ │ │ └── HelloController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── provider_server │ │ │ └── ProviderServerApplicationTests.java │ ├── sentinel_nacos │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── sentinel_nacos │ │ │ │ │ ├── SentinelNacosApplication.java │ │ │ │ │ └── controller │ │ │ │ │ └── HelloController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── sentinel_nacos │ │ │ └── SentinelNacosApplicationTests.java │ └── zuul_server │ │ ├── .gitignore │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── zuul_server │ │ │ │ ├── ZuulServerApplication.java │ │ │ │ ├── config │ │ │ │ └── ZuulConfig.java │ │ │ │ └── fallback │ │ │ │ └── ZuulFallbackProvider.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── zuul_server │ │ └── ZuulServerApplicationTests.java ├── sentinel-springcloud │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ ├── web_flux │ │ ├── .gitignore │ │ ├── .mvn │ │ │ └── wrapper │ │ │ │ ├── MavenWrapperDownloader.java │ │ │ │ ├── maven-wrapper.jar │ │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ │ ├── main │ │ │ ├── java │ │ │ │ └── com │ │ │ │ │ └── springcloud │ │ │ │ │ └── web_flux │ │ │ │ │ ├── WebFluxApplication.java │ │ │ │ │ └── controller │ │ │ │ │ └── HelloController.java │ │ │ └── resources │ │ │ │ └── application.yml │ │ │ └── test │ │ │ └── java │ │ │ └── com │ │ │ └── springcloud │ │ │ └── web_flux │ │ │ └── WebFluxApplicationTests.java │ └── web_mvc │ │ ├── .gitignore │ │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ │ ├── mvnw │ │ ├── mvnw.cmd │ │ ├── pom.xml │ │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── web_mvc │ │ │ │ ├── WebMvcApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── web_mvc │ │ └── WebMvcApplicationTests.java └── simple-sentinel │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── simplesentinel │ │ │ └── SimpleSentinelApplication.java │ └── resources │ │ └── application.properties │ └── test │ └── java │ └── com │ └── springcloud │ └── simplesentinel │ └── SimpleSentinelApplicationTests.java ├── README.md ├── chapter10 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java └── zuul-simple │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── zuulsimple │ │ │ ├── ZuulSimpleApplication.java │ │ │ ├── component │ │ │ └── ProducerFallback.java │ │ │ └── filter │ │ │ ├── MyFilter.java │ │ │ └── TokenFilter.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── zuulsimple │ └── ZuulSimpleApplicationTests.java ├── chapter11 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java └── zuul-simple │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── zuulsimple │ │ │ ├── ZuulSimpleApplication.java │ │ │ ├── component │ │ │ └── ProducerFallback.java │ │ │ └── filter │ │ │ ├── MyFilter.java │ │ │ └── TokenFilter.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── zuulsimple │ └── ZuulSimpleApplicationTests.java ├── chapter12 └── gateway │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── gateway │ │ │ └── GatewayApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── gateway │ └── GatewayApplicationTests.java ├── chapter13 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── gateway │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── gateway │ │ │ │ └── GatewayApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── gateway │ │ └── GatewayApplicationTests.java ├── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java └── producer1 │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── producer │ │ │ ├── ProducerApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── producer │ └── ProducerApplicationTests.java ├── chapter14 └── gateway │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── gateway │ │ │ ├── GatewayApplication.java │ │ │ └── config │ │ │ └── Config.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── gateway │ └── GatewayApplicationTests.java ├── chapter15 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── consumer │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumer │ │ │ │ ├── ConsumerApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumer │ │ └── ConsumerApplicationTests.java ├── eureka │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── eureka │ │ └── EurekaApplicationTests.java ├── mvnw ├── mvnw.cmd ├── pom.xml ├── provider │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── provider │ │ │ │ ├── ProviderApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── provider │ │ └── ProviderApplicationTests.java ├── script │ └── hbase-create.hbase ├── skywalking │ └── agent │ │ ├── activations │ │ ├── apm-toolkit-log4j-1.x-activation-6.3.0.jar │ │ ├── apm-toolkit-log4j-2.x-activation-6.3.0.jar │ │ ├── apm-toolkit-logback-1.x-activation-6.3.0.jar │ │ ├── apm-toolkit-opentracing-activation-6.3.0.jar │ │ └── apm-toolkit-trace-activation-6.3.0.jar │ │ ├── bootstrap-plugins │ │ └── apm-jdk-http-plugin-6.3.0.jar │ │ ├── config │ │ └── agent.config │ │ ├── logs │ │ └── skywalking-api.log │ │ ├── optional-plugins │ │ ├── apm-customize-enhance-plugin-6.3.0.jar │ │ ├── apm-gson-2.x-plugin-6.3.0.jar │ │ ├── apm-lettuce-5.x-plugin-6.3.0.jar │ │ ├── apm-spring-annotation-plugin-6.3.0.jar │ │ ├── apm-spring-cloud-gateway-2.x-plugin-6.3.0.jar │ │ ├── apm-trace-ignore-plugin-6.3.0.jar │ │ └── apm-zookeeper-3.4.x-plugin-6.3.0.jar │ │ ├── plugins │ │ ├── apm-activemq-5.x-plugin-6.3.0.jar │ │ ├── apm-canal-1.x-plugin-6.3.0.jar │ │ ├── apm-dubbo-2.7.x-plugin-6.3.0.jar │ │ ├── apm-dubbo-plugin-6.3.0.jar │ │ ├── apm-elastic-job-2.x-plugin-6.3.0.jar │ │ ├── apm-elasticsearch-5.x-plugin-6.3.0.jar │ │ ├── apm-feign-default-http-9.x-plugin-6.3.0.jar │ │ ├── apm-grpc-1.x-plugin-6.3.0.jar │ │ ├── apm-h2-1.x-plugin-6.3.0.jar │ │ ├── apm-httpClient-4.x-plugin-6.3.0.jar │ │ ├── apm-httpasyncclient-4.x-plugin-6.3.0.jar │ │ ├── apm-hystrix-1.x-plugin-6.3.0.jar │ │ ├── apm-jdbc-commons-6.3.0.jar │ │ ├── apm-jedis-2.x-plugin-6.3.0.jar │ │ ├── apm-jetty-client-9.0-plugin-6.3.0.jar │ │ ├── apm-jetty-client-9.x-plugin-6.3.0.jar │ │ ├── apm-jetty-server-9.x-plugin-6.3.0.jar │ │ ├── apm-kafka-v1-plugin-6.3.0.jar │ │ ├── apm-mongodb-2.x-plugin-6.3.0.jar │ │ ├── apm-mongodb-3.x-plugin-6.3.0.jar │ │ ├── apm-mysql-5.x-plugin-6.3.0.jar │ │ ├── apm-mysql-6.x-plugin-6.3.0.jar │ │ ├── apm-mysql-8.x-plugin-6.3.0.jar │ │ ├── apm-mysql-commons-6.3.0.jar │ │ ├── apm-nutz-http-1.x-plugin-6.3.0.jar │ │ ├── apm-nutz-mvc-annotation-1.x-plugin-6.3.0.jar │ │ ├── apm-okhttp-3.x-plugin-6.3.0.jar │ │ ├── apm-postgresql-8.x-plugin-6.3.0.jar │ │ ├── apm-rabbitmq-5.x-plugin-6.3.0.jar │ │ ├── apm-redisson-3.x-plugin-6.3.0.jar │ │ ├── apm-resttemplate-4.3.x-plugin-6.3.0.jar │ │ ├── apm-rocketmq-3.x-plugin-6.3.0.jar │ │ ├── apm-rocketmq-4.x-plugin-6.3.0.jar │ │ ├── apm-servicecomb-java-chassis-0.x-plugin-6.3.0.jar │ │ ├── apm-servicecomb-java-chassis-1.x-plugin-6.3.0.jar │ │ ├── apm-sharding-jdbc-1.5.x-plugin-6.3.0.jar │ │ ├── apm-sharding-sphere-3.x-plugin-6.3.0.jar │ │ ├── apm-sharding-sphere-4.x-plugin-6.3.0.jar │ │ ├── apm-solrj-7.x-plugin-6.3.0.jar │ │ ├── apm-spring-async-annotation-plugin-6.3.0.jar │ │ ├── apm-spring-cloud-feign-1.x-plugin-6.3.0.jar │ │ ├── apm-spring-concurrent-util-4.x-plugin-6.3.0.jar │ │ ├── apm-spring-core-patch-6.3.0.jar │ │ ├── apm-springmvc-annotation-3.x-plugin-6.3.0.jar │ │ ├── apm-springmvc-annotation-4.x-plugin-6.3.0.jar │ │ ├── apm-springmvc-annotation-5.x-plugin-6.3.0.jar │ │ ├── apm-springmvc-annotation-commons-6.3.0.jar │ │ ├── apm-spymemcached-2.x-plugin-6.3.0.jar │ │ ├── apm-struts2-2.x-plugin-6.3.0.jar │ │ ├── apm-undertow-2.x-plugin-6.3.0.jar │ │ ├── apm-vertx-core-3.x-plugin-6.3.0.jar │ │ ├── apm-webflux-5.x-plugin-6.3.0.jar │ │ ├── apm-xmemcached-2.x-plugin-6.3.0.jar │ │ ├── dubbo-2.7.x-conflict-patch-6.3.0.jar │ │ ├── dubbo-conflict-patch-6.3.0.jar │ │ ├── motan-plugin-6.3.0.jar │ │ ├── resteasy-server-3.x-plugin-6.3.0.jar │ │ ├── sofa-rpc-plugin-6.3.0.jar │ │ ├── spring-commons-6.3.0.jar │ │ └── tomcat-7.x-8.x-plugin-6.3.0.jar │ │ └── skywalking-agent.jar └── zuul │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── zuul │ │ │ └── ZuulApplication.java │ └── resources │ │ ├── application.properties │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── zuul │ └── ZuulApplicationTests.java ├── chapter16 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── chapter16 │ │ │ ├── Chapter16Application.java │ │ │ └── config │ │ │ └── ZuulProxyRefresher.java │ └── resources │ │ ├── META-INF │ │ └── app.properties │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── chapter16 │ └── Chapter16ApplicationTests.java ├── chapter17 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── dockerfiles │ ├── alpine-glibc │ │ ├── Dockerfile │ │ └── README.MD │ ├── java10 │ │ ├── Dockerfile │ │ └── README.MD │ ├── java11 │ │ ├── Dockerfile │ │ └── README.MD │ ├── java8 │ │ ├── Dockerfile │ │ └── README.MD │ └── java9 │ │ ├── Dockerfile │ │ └── README.MD ├── mvnw ├── mvnw.cmd └── pom.xml ├── chapter18 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── eureka_server │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── Dockerfile │ ├── README.MD │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── eureka_server │ │ │ │ └── EurekaServerApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── eureka_server │ │ └── EurekaServerApplicationTests.java ├── gateway_server │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── Dockerfile │ ├── README.MD │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── gateway_server │ │ │ │ └── GatewayServerApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── gateway_server │ │ └── GatewayServerApplicationTests.java ├── mvnw ├── mvnw.cmd ├── pom.xml └── provider_server │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── Dockerfile │ ├── README.MD │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── provider_server │ │ │ ├── ProviderServerApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── provider_server │ └── ProviderServerApplicationTests.java ├── chapter19 ├── .gitignore ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties ├── consumer-server │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumerserver │ │ │ │ ├── ConsumerServerApplication.java │ │ │ │ ├── config │ │ │ │ └── OkHttpConfig.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ ├── intercepter │ │ │ │ └── OkHttpLogInterceptor.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumerserver │ │ └── ConsumerServerApplicationTests.java ├── eureka-server │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── eurekaserver │ │ │ │ └── EurekaServerApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── eurekaserver │ │ └── EurekaServerApplicationTests.java ├── mvnw ├── mvnw.cmd ├── pom.xml ├── provider-server │ ├── .gitignore │ ├── .mvn │ │ └── wrapper │ │ │ ├── MavenWrapperDownloader.java │ │ │ ├── maven-wrapper.jar │ │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── providerserver │ │ │ │ ├── ProviderServerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── providerserver │ │ └── ProviderServerApplicationTests.java └── zuul-server │ ├── .gitignore │ ├── .mvn │ └── wrapper │ │ ├── MavenWrapperDownloader.java │ │ ├── maven-wrapper.jar │ │ └── maven-wrapper.properties │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── zuulserver │ │ │ └── ZuulServerApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── zuulserver │ └── ZuulServerApplicationTests.java ├── chapter2 └── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── Eureka │ │ │ └── EurekaApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── Eureka │ └── EurekaApplicationTests.java ├── chapter3 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── consumers │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumers │ │ │ │ ├── ConsumersApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumers │ │ └── ConsumersApplicationTests.java ├── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java └── producer2 │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── producer │ │ │ ├── ProducerApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── producer │ └── ProducerApplicationTests.java ├── chapter4 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── consumers │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumers │ │ │ │ ├── ConsumersApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ ├── fallback │ │ │ │ └── HelloRemoteFallBack.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumers │ │ └── ConsumersApplicationTests.java └── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── producer │ │ │ ├── ProducerApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── producer │ └── ProducerApplicationTests.java ├── chapter5 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── consumers-node01 │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumers │ │ │ │ ├── ConsumersApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ ├── fallback │ │ │ │ └── HelloRemoteFallBack.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumers │ │ └── ConsumersApplicationTests.java ├── consumers-node02 │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── consumers │ │ │ │ ├── ConsumersApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ ├── fallback │ │ │ │ └── HelloRemoteFallBack.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── consumers │ │ └── ConsumersApplicationTests.java ├── hystrix-dashboard │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── hystrixdashboard │ │ │ │ ├── HystrixDashboardApplication.java │ │ │ │ ├── controller │ │ │ │ └── HelloController.java │ │ │ │ ├── fallback │ │ │ │ └── HelloRemoteFallBack.java │ │ │ │ └── remote │ │ │ │ └── HelloRemote.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── hystrixdashboard │ │ └── HystrixDashboardApplicationTests.java ├── producer │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── producer │ │ │ │ ├── ProducerApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── producer │ │ └── ProducerApplicationTests.java └── turbine │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── turbine │ │ │ └── TurbineApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── turbine │ └── TurbineApplicationTests.java ├── chapter6 ├── config-client │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── configclient │ │ │ │ ├── ConfigClientApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ ├── application.yml │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── configclient │ │ └── ConfigClientApplicationTests.java ├── config-server │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── configserver │ │ │ │ └── ConfigServerApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── configserver │ │ └── ConfigServerApplicationTests.java └── springcloud-config │ ├── springcloud-config-dev.properties │ ├── springcloud-config-pro.properties │ └── springcloud-config-test.properties ├── chapter7 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── config-client │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── configclient │ │ │ │ ├── ConfigClientApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ ├── application.yml │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── configclient │ │ └── ConfigClientApplicationTests.java └── config-server │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── configserver │ │ │ └── ConfigServerApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── configserver │ └── ConfigServerApplicationTests.java ├── chapter8 ├── Eureka │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── Eureka │ │ │ │ └── EurekaApplication.java │ │ └── resources │ │ │ └── application.yml │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── Eureka │ │ └── EurekaApplicationTests.java ├── config-client │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── springcloud │ │ │ │ └── configclient │ │ │ │ ├── ConfigClientApplication.java │ │ │ │ └── controller │ │ │ │ └── HelloController.java │ │ └── resources │ │ │ ├── application.yml │ │ │ └── bootstrap.properties │ │ └── test │ │ └── java │ │ └── com │ │ └── springcloud │ │ └── configclient │ │ └── ConfigClientApplicationTests.java └── config-server │ ├── .gitignore │ ├── mvnw │ ├── mvnw.cmd │ ├── pom.xml │ └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── configserver │ │ │ └── ConfigServerApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── configserver │ └── ConfigServerApplicationTests.java └── chapter9 ├── Eureka ├── .gitignore ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── Eureka │ │ │ └── EurekaApplication.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── Eureka │ └── EurekaApplicationTests.java ├── producer ├── .gitignore ├── mvnw ├── mvnw.cmd ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── springcloud │ │ │ └── producer │ │ │ ├── ProducerApplication.java │ │ │ └── controller │ │ │ └── HelloController.java │ └── resources │ │ └── application.yml │ └── test │ └── java │ └── com │ └── springcloud │ └── producer │ └── ProducerApplicationTests.java └── zuul-simple ├── .gitignore ├── .mvn └── wrapper │ ├── MavenWrapperDownloader.java │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── mvnw ├── mvnw.cmd ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── springcloud │ │ └── zuulsimple │ │ └── ZuulSimpleApplication.java └── resources │ └── application.yml └── test └── java └── com └── springcloud └── zuulsimple └── ZuulSimpleApplicationTests.java /Alibaba/dubbo-spring-cloud-demo/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-demo/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-demo/dubbo_api/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/src/main/java/com/springcloud/dubbo_api/DubboApiApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class DubboApiApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(DubboApiApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/src/main/java/com/springcloud/dubbo_api/service/HelloService.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api.service; 2 | 3 | /** 4 | * @Date: 2019/9/2 16:26 5 | * @Version: 1.0 6 | * @Desc: 7 | */ 8 | public interface HelloService { 9 | String hello(String name); 10 | } 11 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_api/src/test/java/com/springcloud/dubbo_api/DubboApiApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboApiApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | dubbo: 4 | protocol: 5 | name: dubbo 6 | port: -1 7 | registry: 8 | address: spring-cloud://192.168.44.129 9 | cloud: 10 | subscribed-services: dubbo-spring-cloud-provider 11 | spring: 12 | application: 13 | name: dubbo-spring-cloud-consumer 14 | cloud: 15 | nacos: 16 | discovery: 17 | server-addr: 192.168.44.129:8848 18 | main: 19 | allow-bean-definition-overriding: true 20 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_consumer/src/test/java/com/springcloud/dubbo_consumer/DubboConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_consumer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboConsumerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_provider/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_provider/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-demo/dubbo_provider/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_provider/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_provider/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | dubbo: 4 | scan: 5 | base-packages: com.springcloud.dubbo_provider.service 6 | protocol: 7 | name: dubbo 8 | port: -1 9 | registry: 10 | address: spring-cloud://192.168.44.129 11 | spring: 12 | application: 13 | name: dubbo-spring-cloud-provider 14 | cloud: 15 | nacos: 16 | discovery: 17 | server-addr: 192.168.44.129:8848 18 | main: 19 | allow-bean-definition-overriding: true -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-demo/dubbo_provider/src/test/java/com/springcloud/dubbo_provider/DubboProviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_provider; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboProviderApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-http/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-http/dubbo_api/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/src/main/java/com/springcloud/dubbo_api/model/UserModel.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api.model; 2 | 3 | import lombok.Data; 4 | 5 | import java.io.Serializable; 6 | 7 | /** 8 | * @Date: 2019/9/4 14:53 9 | * @Version: 1.0 10 | * @Desc: 11 | */ 12 | @Data 13 | public class UserModel implements Serializable { 14 | private Long id; 15 | private String name; 16 | private int age; 17 | } 18 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/src/main/java/com/springcloud/dubbo_api/service/UserService.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api.service; 2 | 3 | 4 | 5 | import com.springcloud.dubbo_api.model.UserModel; 6 | 7 | import java.util.Collection; 8 | 9 | /** 10 | * @Date: 2019/9/4 16:22 11 | * @Version: 1.0 12 | * @Desc: 13 | */ 14 | public interface UserService { 15 | UserModel save(UserModel user); 16 | 17 | void remove(Long userId); 18 | 19 | Collection findAll(); 20 | } 21 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_api/src/test/java/com/springcloud/dubbo_api/DubboApiApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_api; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboApiApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_consumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_consumer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-http/dubbo_consumer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_consumer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_consumer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9090 3 | dubbo: 4 | protocol: 5 | name: dubbo 6 | port: -1 7 | registry: 8 | address: spring-cloud://139.155.11.128 9 | cloud: 10 | subscribed-services: dubbo-spring-cloud-provider-web 11 | spring: 12 | application: 13 | name: dubbo-spring-cloud-consumer 14 | cloud: 15 | nacos: 16 | discovery: 17 | server-addr: 139.155.11.128:8848 18 | main: 19 | allow-bean-definition-overriding: true 20 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_consumer/src/test/java/com/springcloud/dubbo_consumer/DubboConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_consumer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboConsumerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | dubbo: 4 | scan: 5 | base-packages: com.springcloud.book.ch14_2_dubbo_provider_web.service 6 | protocol: 7 | name: dubbo 8 | port: -1 9 | registry: 10 | address: spring-cloud://139.155.11.128 11 | spring: 12 | application: 13 | name: dubbo-spring-cloud-provider-web 14 | cloud: 15 | nacos: 16 | discovery: 17 | server-addr: 139.155.11.128:8848 18 | main: 19 | allow-bean-definition-overriding: true -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/dubbo_provider_web/src/test/java/com/springcloud/dubbo_provider_web/DubboProviderWebApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.dubbo_provider_web; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class DubboProviderWebApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/spring_cloud_consumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/spring_cloud_consumer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/dubbo-spring-cloud-http/spring_cloud_consumer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/spring_cloud_consumer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/dubbo-spring-cloud-http/spring_cloud_consumer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-consumer-server 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 139.155.11.128:8848 -------------------------------------------------------------------------------- /Alibaba/gateway-nacos-config/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/gateway-nacos-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/gateway-nacos-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/gateway-nacos-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/gateway-nacos-config/src/main/java/com/springcloud/alibaba/gatewaynacosconfig/GatewayNacosConfigApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.alibaba.gatewaynacosconfig; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class GatewayNacosConfigApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(GatewayNacosConfigApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/gateway-nacos-config/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-gateway-server 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 192.168.44.129:8848 10 | management: 11 | endpoints: 12 | web: 13 | exposure: 14 | include: '*' 15 | -------------------------------------------------------------------------------- /Alibaba/nacos-config/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/nacos-config/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/nacos-config/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/nacos-config/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/nacos-config/src/main/java/com/springcloud/nacosconfig/NacosConfigApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.nacosconfig; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class NacosConfigApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(NacosConfigApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/nacos-config/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Alibaba/nacos-config/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.cloud.nacos.config.server-addr=127.0.0.1:8848 2 | 3 | spring.application.name=spring-cloud-nacos-config -------------------------------------------------------------------------------- /Alibaba/nacos-config/src/test/java/com/springcloud/nacosconfig/NacosConfigApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.nacosconfig; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class NacosConfigApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/nacos-cosumers/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/src/main/java/com/spring/nacoscosumers/remote/HelloRemote.java: -------------------------------------------------------------------------------- 1 | package com.spring.nacoscosumers.remote; 2 | 3 | import org.springframework.cloud.openfeign.FeignClient; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | import org.springframework.web.bind.annotation.RequestParam; 6 | 7 | @FeignClient(name= "spring-cloud-nacos-producer") 8 | public interface HelloRemote { 9 | @RequestMapping(value = "/hello") 10 | String hello(@RequestParam(value = "name") String name); 11 | } 12 | -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-nacos-consumers 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 101.132.124.125:8848 -------------------------------------------------------------------------------- /Alibaba/nacos-cosumers/src/test/java/com/spring/nacoscosumers/NacosCosumersApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.spring.nacoscosumers; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class NacosCosumersApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/nacos-gateway/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/src/main/java/com/spring/nacosgateway/NacosGatewayApplication.java: -------------------------------------------------------------------------------- 1 | package com.spring.nacosgateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class NacosGatewayApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(NacosGatewayApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/nacos-gateway/src/main/resources/application.yml -------------------------------------------------------------------------------- /Alibaba/nacos-gateway/src/test/java/com/spring/nacosgateway/NacosGatewayApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.spring.nacosgateway; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class NacosGatewayApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/nacos-producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/nacos-producer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/nacos-producer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/nacos-producer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/nacos-producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.client.discovery.EnableDiscoveryClient; 6 | 7 | @SpringBootApplication 8 | @EnableDiscoveryClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /Alibaba/nacos-producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9000 3 | spring: 4 | application: 5 | name: spring-cloud-nacos-producer 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 101.132.124.125:8848 10 | -------------------------------------------------------------------------------- /Alibaba/nacos-producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/seata-nacos-jpa/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/common/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/common/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/seata-nacos-jpa/common/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/common/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/common/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/common/src/test/java/com/springcloud/common/CommonApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.common; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class CommonApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/seata-nacos-jpa/order-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/src/main/java/com/springcloud/orderserver/model/OrderStatus.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.orderserver.model; 2 | 3 | public enum OrderStatus { 4 | /** 5 | * INIT 6 | */ 7 | INIT, 8 | /** 9 | * SUCCESS 10 | */ 11 | SUCCESS, 12 | /** 13 | * FAIL 14 | */ 15 | FAIL 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: spring-cloud-order-server 4 | cloud: 5 | nacos: 6 | # nacos config 7 | config: 8 | server-addr: 192.168.0.128 9 | namespace: public 10 | group: SEATA_GROUP 11 | # nacos discovery 12 | discovery: 13 | server-addr: 192.168.0.128 14 | namespace: public 15 | enabled: true 16 | alibaba: 17 | seata: 18 | tx-service-group: ${spring.application.name} -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/src/main/resources/registry.conf: -------------------------------------------------------------------------------- 1 | registry { 2 | type = "nacos" 3 | nacos { 4 | serverAddr = "192.168.0.128" 5 | namespace = "public" 6 | cluster = "default" 7 | } 8 | } 9 | 10 | config { 11 | type = "nacos" 12 | nacos { 13 | serverAddr = "192.168.0.128" 14 | namespace = "public" 15 | cluster = "default" 16 | } 17 | } -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/order-server/src/test/java/com/springcloud/orderserver/OrderServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.orderserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class OrderServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/seata-nacos-jpa/pay-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: spring-cloud-pay-server 4 | cloud: 5 | nacos: 6 | # nacos config 7 | config: 8 | server-addr: 192.168.0.128 9 | namespace: public 10 | group: SEATA_GROUP 11 | # nacos discovery 12 | discovery: 13 | server-addr: 192.168.0.128 14 | namespace: public 15 | enabled: true 16 | alibaba: 17 | seata: 18 | tx-service-group: ${spring.application.name} -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/src/main/resources/registry.conf: -------------------------------------------------------------------------------- 1 | registry { 2 | type = "nacos" 3 | nacos { 4 | serverAddr = "192.168.0.128" 5 | namespace = "public" 6 | cluster = "default" 7 | } 8 | } 9 | 10 | config { 11 | type = "nacos" 12 | nacos { 13 | serverAddr = "192.168.0.128" 14 | namespace = "public" 15 | cluster = "default" 16 | } 17 | } -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/pay-server/src/test/java/com/springcloud/payserver/PayServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.payserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class PayServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/seata-nacos-jpa/storage-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/src/main/resources/bootstrap.yml: -------------------------------------------------------------------------------- 1 | spring: 2 | application: 3 | name: spring-cloud-storage-server 4 | cloud: 5 | nacos: 6 | # nacos config 7 | config: 8 | server-addr: 192.168.0.128 9 | namespace: public 10 | group: SEATA_GROUP 11 | # nacos discovery 12 | discovery: 13 | server-addr: 192.168.0.128 14 | namespace: public 15 | enabled: true 16 | alibaba: 17 | seata: 18 | tx-service-group: ${spring.application.name} -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/src/main/resources/registry.conf: -------------------------------------------------------------------------------- 1 | registry { 2 | type = "nacos" 3 | nacos { 4 | serverAddr = "192.168.0.128" 5 | namespace = "public" 6 | cluster = "default" 7 | } 8 | } 9 | 10 | config { 11 | type = "nacos" 12 | nacos { 13 | serverAddr = "192.168.0.128" 14 | namespace = "public" 15 | cluster = "default" 16 | } 17 | } -------------------------------------------------------------------------------- /Alibaba/seata-nacos-jpa/storage-server/src/test/java/com/springcloud/storageserver/StorageServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.storageserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class StorageServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-demo/sentinel-demo-basic/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/src/main/java/com/springcloud/sentineldemobasic/SentinelDemoBasicApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.sentineldemobasic; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SentinelDemoBasicApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SentinelDemoBasicApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | server.port=8080 -------------------------------------------------------------------------------- /Alibaba/sentinel-demo/sentinel-demo-basic/src/test/java/com/springcloud/sentineldemobasic/SentinelDemoBasicApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.sentineldemobasic; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SentinelDemoBasicApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_fallback/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_fallback/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/consumer_fallback/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_fallback/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_fallback/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9090 3 | spring: 4 | application: 5 | name: spring-cloud-consumer-fallback 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 192.168.44.129:8848 10 | sentinel: 11 | transport: 12 | dashboard: localhost:8080 13 | port: 8719 14 | management: 15 | endpoints: 16 | web: 17 | cors: 18 | allowed-methods: '*' 19 | feign: 20 | sentinel: 21 | enabled: true 22 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/consumer_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9000 3 | spring: 4 | application: 5 | name: spring-cloud-consumer-server 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 192.168.44.129:8848 10 | sentinel: 11 | transport: 12 | dashboard: localhost:8080 13 | port: 8719 14 | management: 15 | endpoints: 16 | web: 17 | cors: 18 | allowed-methods: '*' 19 | feign: 20 | sentinel: 21 | enabled: true -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/consumer_server/src/test/java/com/springcloud/consumer_server/ConsumerServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumer_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumerServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/gateway_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/gateway_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/gateway_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/gateway_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/gateway_server/src/main/java/com/springcloud/gateway_server/GatewayServerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway_server; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class GatewayServerApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(GatewayServerApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/gateway_server/src/test/java/com/springcloud/gateway_server/GatewayServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class GatewayServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/provider_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/provider_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/provider_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/provider_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/provider_server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | spring: 4 | application: 5 | name: spring-cloud-provider-server 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 192.168.44.129:8848 10 | sentinel: 11 | transport: 12 | dashboard: localhost:8080 13 | port: 8720 14 | management: 15 | endpoints: 16 | web: 17 | cors: 18 | allowed-methods: '*' -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/provider_server/src/test/java/com/springcloud/provider_server/ProviderServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.provider_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProviderServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/sentinel_nacos/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/sentinel_nacos/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/sentinel_nacos/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/sentinel_nacos/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/sentinel_nacos/src/main/java/com/springcloud/sentinel_nacos/SentinelNacosApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.sentinel_nacos; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class SentinelNacosApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(SentinelNacosApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/sentinel_nacos/src/test/java/com/springcloud/sentinel_nacos/SentinelNacosApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.sentinel_nacos; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SentinelNacosApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/zuul_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/zuul_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud-high/zuul_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/zuul_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/zuul_server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 18080 3 | spring: 4 | application: 5 | name: spring-cloud-zuul-server 6 | cloud: 7 | nacos: 8 | discovery: 9 | server-addr: 192.168.44.129:8848 10 | sentinel: 11 | transport: 12 | dashboard: localhost:8080 13 | port: 8720 14 | zuul: 15 | routes: 16 | consumer-route: 17 | path: /consumer/** 18 | serviceId: spring-cloud-consumer-fallback -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud-high/zuul_server/src/test/java/com/springcloud/zuul_server/ZuulServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuul_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud/web_flux/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/src/main/java/com/springcloud/web_flux/WebFluxApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.web_flux; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class WebFluxApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(WebFluxApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9000 3 | spring: 4 | application: 5 | name: web-flux 6 | cloud: 7 | sentinel: 8 | transport: 9 | dashboard: 192.168.44.129:8080 10 | port: 8720 11 | management: 12 | endpoints: 13 | web: 14 | cors: 15 | allowed-methods: '*' -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_flux/src/test/java/com/springcloud/web_flux/WebFluxApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.web_flux; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class WebFluxApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/Alibaba/sentinel-springcloud/web_mvc/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/src/main/java/com/springcloud/web_mvc/WebMvcApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.web_mvc; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class WebMvcApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(WebMvcApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | spring: 4 | application: 5 | name: web-mvc 6 | cloud: 7 | sentinel: 8 | transport: 9 | dashboard: 192.168.44.129:8080 10 | port: 8719 11 | management: 12 | endpoints: 13 | web: 14 | cors: 15 | allowed-methods: '*' -------------------------------------------------------------------------------- /Alibaba/sentinel-springcloud/web_mvc/src/test/java/com/springcloud/web_mvc/WebMvcApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.web_mvc; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class WebMvcApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Alibaba/simple-sentinel/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /Alibaba/simple-sentinel/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Alibaba/simple-sentinel/src/test/java/com/springcloud/simplesentinel/SimpleSentinelApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.simplesentinel; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class SimpleSentinelApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter10/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter10/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter10/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | # server: 8 | # enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter10/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter10/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter10/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter10/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter10/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter10/zuul-simple/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter10/zuul-simple/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter10/zuul-simple/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter10/zuul-simple/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter10/zuul-simple/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-zuul 6 | zuul: 7 | FormBodyWrapperFilter: 8 | pre: 9 | disable: true 10 | eureka: 11 | client: 12 | service-url: 13 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter10/zuul-simple/src/test/java/com/springcloud/zuulsimple/ZuulSimpleApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuulsimple; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulSimpleApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter11/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter11/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter11/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | # server: 8 | # enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter11/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter11/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter11/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter11/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | rabbitmq: 7 | host: host 8 | port: 5672 9 | username: username 10 | password: password 11 | sleuth: 12 | sampler: 13 | probability: 1.0 14 | eureka: 15 | client: 16 | service-url: 17 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter11/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter11/zuul-simple/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter11/zuul-simple/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter11/zuul-simple/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter11/zuul-simple/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter11/zuul-simple/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-zuul 6 | rabbitmq: 7 | host: host 8 | port: 5672 9 | username: username 10 | password: password 11 | sleuth: 12 | sampler: 13 | probability: 1.0 14 | zuul: 15 | FormBodyWrapperFilter: 16 | pre: 17 | disable: true 18 | eureka: 19 | client: 20 | service-url: 21 | defaultZone: http://localhost:8761/eureka/ 22 | -------------------------------------------------------------------------------- /chapter11/zuul-simple/src/test/java/com/springcloud/zuulsimple/ZuulSimpleApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuulsimple; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulSimpleApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter12/gateway/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter12/gateway/src/test/java/com/springcloud/gateway/GatewayApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class GatewayApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter13/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter13/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter13/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | # server: 8 | # enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter13/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter13/gateway/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter13/gateway/src/test/java/com/springcloud/gateway/GatewayApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class GatewayApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter13/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter13/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter13/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter13/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter13/producer1/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter13/producer1/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter13/producer1/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8082 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter13/producer1/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter14/gateway/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter14/gateway/src/main/java/com/springcloud/gateway/GatewayApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class GatewayApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(GatewayApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /chapter14/gateway/src/test/java/com/springcloud/gateway/GatewayApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class GatewayApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter15/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter15/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter15/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter15/consumer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter15/consumer/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/consumer/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter15/consumer/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter15/consumer/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter15/consumer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | spring: 4 | application: 5 | name: spring-cloud-consumer-server 6 | eureka: 7 | client: 8 | serviceUrl: 9 | defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/ 10 | instance: 11 | prefer-ip-address: true -------------------------------------------------------------------------------- /chapter15/consumer/src/test/java/com/springcloud/consumer/ConsumerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter15/eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter15/eureka/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/eureka/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter15/eureka/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter15/eureka/src/main/java/com/springcloud/eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter15/eureka/src/test/java/com/springcloud/eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter15/provider/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter15/provider/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/provider/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter15/provider/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter15/provider/src/main/java/com/springcloud/provider/ProviderApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.provider; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProviderApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProviderApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter15/provider/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 7000 3 | spring: 4 | application: 5 | name: spring-cloud-provider-server 6 | eureka: 7 | client: 8 | serviceUrl: 9 | defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/ 10 | instance: 11 | prefer-ip-address: true -------------------------------------------------------------------------------- /chapter15/provider/src/test/java/com/springcloud/provider/ProviderApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.provider; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProviderApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter15/skywalking/agent/activations/apm-toolkit-log4j-1.x-activation-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/activations/apm-toolkit-log4j-1.x-activation-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/activations/apm-toolkit-log4j-2.x-activation-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/activations/apm-toolkit-log4j-2.x-activation-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/activations/apm-toolkit-logback-1.x-activation-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/activations/apm-toolkit-logback-1.x-activation-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/activations/apm-toolkit-opentracing-activation-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/activations/apm-toolkit-opentracing-activation-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/activations/apm-toolkit-trace-activation-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/activations/apm-toolkit-trace-activation-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/bootstrap-plugins/apm-jdk-http-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/bootstrap-plugins/apm-jdk-http-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-customize-enhance-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-customize-enhance-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-gson-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-gson-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-lettuce-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-lettuce-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-spring-annotation-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-spring-annotation-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-spring-cloud-gateway-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-spring-cloud-gateway-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-trace-ignore-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-trace-ignore-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/optional-plugins/apm-zookeeper-3.4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/optional-plugins/apm-zookeeper-3.4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-activemq-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-activemq-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-canal-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-canal-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-dubbo-2.7.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-dubbo-2.7.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-dubbo-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-dubbo-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-elastic-job-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-elastic-job-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-elasticsearch-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-elasticsearch-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-feign-default-http-9.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-feign-default-http-9.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-grpc-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-grpc-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-h2-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-h2-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-httpClient-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-httpClient-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-httpasyncclient-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-httpasyncclient-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-hystrix-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-hystrix-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-jdbc-commons-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-jdbc-commons-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-jedis-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-jedis-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-jetty-client-9.0-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-jetty-client-9.0-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-jetty-client-9.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-jetty-client-9.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-jetty-server-9.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-jetty-server-9.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-kafka-v1-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-kafka-v1-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mongodb-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mongodb-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mongodb-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mongodb-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mysql-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mysql-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mysql-6.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mysql-6.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mysql-8.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mysql-8.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-mysql-commons-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-mysql-commons-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-nutz-http-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-nutz-http-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-nutz-mvc-annotation-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-nutz-mvc-annotation-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-okhttp-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-okhttp-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-postgresql-8.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-postgresql-8.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-rabbitmq-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-rabbitmq-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-redisson-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-redisson-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-resttemplate-4.3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-resttemplate-4.3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-rocketmq-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-rocketmq-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-rocketmq-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-rocketmq-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-servicecomb-java-chassis-0.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-servicecomb-java-chassis-0.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-servicecomb-java-chassis-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-servicecomb-java-chassis-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-sharding-jdbc-1.5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-sharding-jdbc-1.5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-sharding-sphere-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-sharding-sphere-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-sharding-sphere-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-sharding-sphere-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-solrj-7.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-solrj-7.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-spring-async-annotation-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-spring-async-annotation-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-spring-cloud-feign-1.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-spring-cloud-feign-1.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-spring-concurrent-util-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-spring-concurrent-util-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-spring-core-patch-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-spring-core-patch-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-springmvc-annotation-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-springmvc-annotation-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-springmvc-annotation-4.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-springmvc-annotation-4.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-springmvc-annotation-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-springmvc-annotation-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-springmvc-annotation-commons-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-springmvc-annotation-commons-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-spymemcached-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-spymemcached-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-struts2-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-struts2-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-undertow-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-undertow-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-vertx-core-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-vertx-core-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-webflux-5.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-webflux-5.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/apm-xmemcached-2.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/apm-xmemcached-2.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/dubbo-2.7.x-conflict-patch-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/dubbo-2.7.x-conflict-patch-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/dubbo-conflict-patch-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/dubbo-conflict-patch-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/motan-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/motan-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/resteasy-server-3.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/resteasy-server-3.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/sofa-rpc-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/sofa-rpc-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/spring-commons-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/spring-commons-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/plugins/tomcat-7.x-8.x-plugin-6.3.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/plugins/tomcat-7.x-8.x-plugin-6.3.0.jar -------------------------------------------------------------------------------- /chapter15/skywalking/agent/skywalking-agent.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/skywalking/agent/skywalking-agent.jar -------------------------------------------------------------------------------- /chapter15/zuul/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter15/zuul/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter15/zuul/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter15/zuul/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter15/zuul/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /chapter15/zuul/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-zuul-server 6 | eureka: 7 | client: 8 | serviceUrl: 9 | defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/ 10 | instance: 11 | prefer-ip-address: true 12 | zuul: 13 | ribbon: 14 | eager-load: 15 | enabled: true 16 | routes: 17 | spring-cloud-consumer-server: 18 | path: /client/** 19 | serviceId: spring-cloud-consumer-server -------------------------------------------------------------------------------- /chapter15/zuul/src/test/java/com/springcloud/zuul/ZuulApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuul; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter16/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter16/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter16/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter16/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter16/src/main/resources/META-INF/app.properties: -------------------------------------------------------------------------------- 1 | app.id=123456789 -------------------------------------------------------------------------------- /chapter16/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | apollo: 2 | bootstrap: 3 | enabled: true 4 | namespaces: zuul-config-apollo 5 | Meta: http://localhost:8080 -------------------------------------------------------------------------------- /chapter16/src/test/java/com/springcloud/chapter16/Chapter16ApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.chapter16; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class Chapter16ApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter17/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter17/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter17/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter17/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter17/dockerfiles/alpine-glibc/README.MD: -------------------------------------------------------------------------------- 1 | 阿里云Docker镜像,docker下载命令: 2 | 3 | ``` 4 | docker pull registry.cn-shanghai.aliyuncs.com/weishiyao/alpine-3.7:glibc-2.27-r0 5 | ``` -------------------------------------------------------------------------------- /chapter17/dockerfiles/java10/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/alpine-3.10:glibc-2.30-r0 2 | MAINTAINER inwsy@hotmail.com 3 | RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/main\n\ 4 | https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/community" > /etc/apk/repositories 5 | 6 | RUN apk --update add curl bash openjdk10-jre && \ 7 | rm -rf /var/cache/apk/* 8 | 9 | ENV JAVA_HOME /usr/lib/jvm/default-jvm 10 | ENV PATH ${PATH}:${JAVA_HOME}/bin -------------------------------------------------------------------------------- /chapter17/dockerfiles/java10/README.MD: -------------------------------------------------------------------------------- 1 | 阿里云Docker镜像,docker下载命令: 2 | 3 | ``` 4 | docker pull registry.cn-shanghai.aliyuncs.com/springcloud-book/java:openjdk10-jre-10.0.2 5 | ``` 6 | -------------------------------------------------------------------------------- /chapter17/dockerfiles/java11/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/alpine-3.10:glibc-2.30-r0 2 | MAINTAINER inwsy@hotmail.com 3 | RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/main\n\ 4 | https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/community" > /etc/apk/repositories 5 | 6 | RUN apk --update add curl bash openjdk11-jre && \ 7 | rm -rf /var/cache/apk/* 8 | 9 | ENV JAVA_HOME /usr/lib/jvm/default-jvm 10 | ENV PATH ${PATH}:${JAVA_HOME}/bin -------------------------------------------------------------------------------- /chapter17/dockerfiles/java11/README.MD: -------------------------------------------------------------------------------- 1 | 阿里云Docker镜像,docker下载命令: 2 | 3 | ``` 4 | docker pull registry.cn-shanghai.aliyuncs.com/springcloud-book/java:openjdk11-jre-11.0.4 5 | ``` 6 | -------------------------------------------------------------------------------- /chapter17/dockerfiles/java8/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/alpine-3.10:glibc-2.30-r0 2 | MAINTAINER inwsy@hotmail.com 3 | ADD server-jre-8u221-linux-x64.tar.gz /opt/ 4 | RUN chmod +x /opt/jdk1.8.0_221 5 | ENV JAVA_HOME=/opt/jdk1.8.0_221 6 | ENV PATH="$JAVA_HOME/bin:${PATH}" -------------------------------------------------------------------------------- /chapter17/dockerfiles/java8/README.MD: -------------------------------------------------------------------------------- 1 | 阿里云Docker镜像,docker下载命令: 2 | 3 | ``` 4 | docker pull registry.cn-shanghai.aliyuncs.com/springcloud-book/java:8u221-jre 5 | ``` 6 | -------------------------------------------------------------------------------- /chapter17/dockerfiles/java9/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/alpine-3.10:glibc-2.30-r0 2 | MAINTAINER inwsy@hotmail.com 3 | RUN echo -e "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/main\n\ 4 | https://mirror.tuna.tsinghua.edu.cn/alpine/v3.10/community" > /etc/apk/repositories 5 | 6 | RUN apk --update add curl bash openjdk9-jre && \ 7 | rm -rf /var/cache/apk/* 8 | 9 | ENV JAVA_HOME /usr/lib/jvm/default-jvm 10 | ENV PATH ${PATH}:${JAVA_HOME}/bin -------------------------------------------------------------------------------- /chapter17/dockerfiles/java9/README.MD: -------------------------------------------------------------------------------- 1 | 阿里云Docker镜像,docker下载命令: 2 | 3 | ``` 4 | docker pull registry.cn-shanghai.aliyuncs.com/springcloud-book/java:openjdk9-jre-9.0.4 5 | ``` 6 | -------------------------------------------------------------------------------- /chapter18/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter18/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter18/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter18/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter18/eureka_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter18/eureka_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter18/eureka_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter18/eureka_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter18/eureka_server/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/java:8u221-jre 2 | ARG JAR_FILE 3 | ENV PROFILE default 4 | ADD target/${JAR_FILE} /opt/app.jar 5 | EXPOSE 8080 6 | ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai -Dfile.encoding=UTF-8 -Dspring.profiles.active=${PROFILE} -jar /opt/app.jar -------------------------------------------------------------------------------- /chapter18/eureka_server/src/test/java/com/springcloud/eureka_server/EurekaServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.eureka_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter18/gateway_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter18/gateway_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter18/gateway_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter18/gateway_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter18/gateway_server/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/java:8u221-jre 2 | ARG JAR_FILE 3 | ENV PROFILE default 4 | ADD target/${JAR_FILE} /opt/app.jar 5 | EXPOSE 8080 6 | ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai -Dfile.encoding=UTF-8 -Dspring.profiles.active=${PROFILE} -jar /opt/app.jar -------------------------------------------------------------------------------- /chapter18/gateway_server/src/main/java/com/springcloud/gateway_server/GatewayServerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway_server; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class GatewayServerApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(GatewayServerApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /chapter18/gateway_server/src/test/java/com/springcloud/gateway_server/GatewayServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.gateway_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class GatewayServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter18/provider_server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter18/provider_server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter18/provider_server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter18/provider_server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter18/provider_server/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM registry.cn-shanghai.aliyuncs.com/springcloud-book/java:8u221-jre 2 | ARG JAR_FILE 3 | ENV PROFILE default 4 | ADD target/${JAR_FILE} /opt/app.jar 5 | EXPOSE 8080 6 | ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -Duser.timezone=Asia/Shanghai -Dfile.encoding=UTF-8 -Dspring.profiles.active=${PROFILE} -jar /opt/app.jar -------------------------------------------------------------------------------- /chapter18/provider_server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-provider-server 6 | cloud: 7 | inetutils: 8 | use-only-site-local-interfaces: true 9 | eureka: 10 | client: 11 | serviceUrl: 12 | defaultZone: http://${EUREKA_SERVER1_HOST}:${EUREKA_SERVER1_PORT}/eureka/, http://${EUREKA_SERVER2_HOST}:${EUREKA_SERVER2_PORT}/eureka/ 13 | instance: 14 | prefer-ip-address: true -------------------------------------------------------------------------------- /chapter18/provider_server/src/test/java/com/springcloud/provider_server/ProviderServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.provider_server; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProviderServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter19/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter19/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter19/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter19/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter19/consumer-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter19/consumer-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter19/consumer-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter19/consumer-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter19/consumer-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9000 3 | spring: 4 | application: 5 | name: consumer-server 6 | feign: 7 | httpclient: 8 | enabled: false 9 | okhttp: 10 | enabled: true -------------------------------------------------------------------------------- /chapter19/consumer-server/src/test/java/com/springcloud/consumerserver/ConsumerServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumerserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumerServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter19/eureka-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter19/eureka-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter19/eureka-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter19/eureka-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter19/eureka-server/src/test/java/com/springcloud/eurekaserver/EurekaServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.eurekaserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter19/provider-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter19/provider-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter19/provider-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter19/provider-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter19/provider-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | spring: 4 | application: 5 | name: provider-server -------------------------------------------------------------------------------- /chapter19/provider-server/src/test/java/com/springcloud/providerserver/ProviderServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.providerserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProviderServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter19/zuul-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter19/zuul-server/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter19/zuul-server/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter19/zuul-server/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter19/zuul-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | eureka: 4 | client: 5 | serviceUrl: 6 | defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/ 7 | instance: 8 | prefer-ip-address: true 9 | zuul: 10 | retryable: true 11 | ribbon: 12 | eager-load: 13 | enabled: true 14 | routes: 15 | consumer-server: 16 | path: /consumer/** 17 | serviceId: consumer-server 18 | ribbon: 19 | http: 20 | client: 21 | enabled: false 22 | okhttp: 23 | enabled: true -------------------------------------------------------------------------------- /chapter19/zuul-server/src/test/java/com/springcloud/zuulserver/ZuulServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuulserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter2/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter2/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter2/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/,http://localhost:8080/eureka/ -------------------------------------------------------------------------------- /chapter2/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter3/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter3/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter3/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter3/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter3/consumers/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter3/consumers/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-consumers 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ 10 | logging: 11 | level: 12 | root: info -------------------------------------------------------------------------------- /chapter3/consumers/src/test/java/com/springcloud/consumers/ConsumersApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumers; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumersApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter3/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter3/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter3/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter3/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter3/producer2/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter3/producer2/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter3/producer2/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8082 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter3/producer2/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter4/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter4/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter4/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter4/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter4/consumers/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter4/consumers/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-consumers 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ 10 | feign: 11 | hystrix: 12 | enabled: true -------------------------------------------------------------------------------- /chapter4/consumers/src/test/java/com/springcloud/consumers/ConsumersApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumers; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumersApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter4/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter4/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter4/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter4/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter5/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter5/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/consumers-node01/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/consumers-node01/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8000 3 | spring: 4 | application: 5 | name: node01 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ 10 | feign: 11 | hystrix: 12 | enabled: true -------------------------------------------------------------------------------- /chapter5/consumers-node01/src/test/java/com/springcloud/consumers/ConsumersApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumers; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumersApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/consumers-node02/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/consumers-node02/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8001 3 | spring: 4 | application: 5 | name: node02 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ 10 | feign: 11 | hystrix: 12 | enabled: true -------------------------------------------------------------------------------- /chapter5/consumers-node02/src/test/java/com/springcloud/consumers/ConsumersApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.consumers; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConsumersApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/hystrix-dashboard/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/hystrix-dashboard/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-hystrix-dashboard 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ 10 | feign: 11 | hystrix: 12 | enabled: true -------------------------------------------------------------------------------- /chapter5/hystrix-dashboard/src/test/java/com/springcloud/hystrixdashboard/HystrixDashboardApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.hystrixdashboard; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class HystrixDashboardApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter5/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter5/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter5/turbine/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter5/turbine/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8888 3 | spring: 4 | application: 5 | name: hystrix-dashboard-turbine 6 | turbine: 7 | app-config: node01,node02 8 | aggregator: 9 | cluster-config: default 10 | cluster-name-expression: new String("default") 11 | combine-host-port: true 12 | eureka: 13 | client: 14 | service-url: 15 | defaultZone: http://localhost:8761/eureka/ 16 | -------------------------------------------------------------------------------- /chapter5/turbine/src/test/java/com/springcloud/turbine/TurbineApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.turbine; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class TurbineApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter6/config-client/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter6/config-client/src/main/java/com/springcloud/configclient/ConfigClientApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configclient; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | 6 | @SpringBootApplication 7 | public class ConfigClientApplication { 8 | 9 | public static void main(String[] args) { 10 | SpringApplication.run(ConfigClientApplication.class, args); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /chapter6/config-client/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-config-client -------------------------------------------------------------------------------- /chapter6/config-client/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.cloud.config.name=springcloud-config 2 | spring.cloud.config.profile=dev 3 | spring.cloud.config.uri=http://localhost:8080/ 4 | spring.cloud.config.label=master -------------------------------------------------------------------------------- /chapter6/config-client/src/test/java/com/springcloud/configclient/ConfigClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configclient; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigClientApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter6/config-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter6/config-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-config-server 6 | cloud: 7 | config: 8 | server: 9 | git: 10 | uri: https://github.com/meteor1993/SpringCloudLearning # git仓库的地址 11 | search-paths: chapter6/springcloud-config # git仓库地址下的相对地址,可以配置多个,用,分割。 12 | username: 13 | password: 14 | -------------------------------------------------------------------------------- /chapter6/config-server/src/test/java/com/springcloud/configserver/ConfigServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter6/springcloud-config/springcloud-config-dev.properties: -------------------------------------------------------------------------------- 1 | springcloud.hello=hello dev update 2 | server.port=8085 3 | -------------------------------------------------------------------------------- /chapter6/springcloud-config/springcloud-config-pro.properties: -------------------------------------------------------------------------------- 1 | springcloud.hello=hello pro -------------------------------------------------------------------------------- /chapter6/springcloud-config/springcloud-config-test.properties: -------------------------------------------------------------------------------- 1 | springcloud.hello=hello test -------------------------------------------------------------------------------- /chapter7/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter7/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter7/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter7/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter7/config-client/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter7/config-client/src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter7/config-client/src/main/resources/application.yml -------------------------------------------------------------------------------- /chapter7/config-client/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- 1 | spring.application.name=spring-cloud-config-client 2 | server.port=8081 3 | 4 | spring.cloud.config.name=springcloud-config 5 | spring.cloud.config.profile=dev 6 | spring.cloud.config.label=master 7 | spring.cloud.config.discovery.enabled=true 8 | spring.cloud.config.discovery.serviceId=spring-cloud-config-server 9 | 10 | eureka.client.service-url.defaultZone=http://localhost:8761/eureka/ 11 | 12 | management.security.enabled=false 13 | management.endpoints.web.exposure.include=* -------------------------------------------------------------------------------- /chapter7/config-client/src/test/java/com/springcloud/configclient/ConfigClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configclient; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigClientApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter7/config-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter7/config-server/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-config-server 6 | cloud: 7 | config: 8 | server: 9 | git: 10 | uri: https://github.com/meteor1993/SpringCloudLearning 11 | search-paths: chapter6/springcloud-config 12 | username: inwsy@hotmail.com 13 | password: wsy136736247. 14 | eureka: 15 | client: 16 | service-url: 17 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter7/config-server/src/test/java/com/springcloud/configserver/ConfigServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter8/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter8/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter8/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter8/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter8/config-client/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter8/config-client/src/main/resources/application.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter8/config-client/src/main/resources/application.yml -------------------------------------------------------------------------------- /chapter8/config-client/src/main/resources/bootstrap.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter8/config-client/src/main/resources/bootstrap.properties -------------------------------------------------------------------------------- /chapter8/config-client/src/test/java/com/springcloud/configclient/ConfigClientApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configclient; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigClientApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter8/config-server/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter8/config-server/src/test/java/com/springcloud/configserver/ConfigServerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.configserver; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ConfigServerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter9/Eureka/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | .mvn 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter9/Eureka/src/main/java/com/springcloud/Eureka/EurekaApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaServer 9 | public class EurekaApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(EurekaApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter9/Eureka/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8761 3 | spring: 4 | application: 5 | name: eureka-serve 6 | eureka: 7 | server: 8 | enable-self-preservation: false 9 | client: 10 | register-with-eureka: false 11 | service-url: 12 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter9/Eureka/src/test/java/com/springcloud/Eureka/EurekaApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.Eureka; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class EurekaApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter9/producer/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .mvn 18 | .idea 19 | *.iws 20 | *.iml 21 | *.ipr 22 | 23 | ### NetBeans ### 24 | /nbproject/private/ 25 | /nbbuild/ 26 | /dist/ 27 | /nbdist/ 28 | /.nb-gradle/ 29 | build/ 30 | 31 | ### VS Code ### 32 | .vscode/ 33 | -------------------------------------------------------------------------------- /chapter9/producer/src/main/java/com/springcloud/producer/ProducerApplication.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.springframework.boot.SpringApplication; 4 | import org.springframework.boot.autoconfigure.SpringBootApplication; 5 | import org.springframework.cloud.netflix.eureka.EnableEurekaClient; 6 | 7 | @SpringBootApplication 8 | @EnableEurekaClient 9 | public class ProducerApplication { 10 | 11 | public static void main(String[] args) { 12 | SpringApplication.run(ProducerApplication.class, args); 13 | } 14 | 15 | } 16 | -------------------------------------------------------------------------------- /chapter9/producer/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8081 3 | spring: 4 | application: 5 | name: spring-cloud-producer 6 | eureka: 7 | client: 8 | service-url: 9 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter9/producer/src/test/java/com/springcloud/producer/ProducerApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.producer; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ProducerApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /chapter9/zuul-simple/.gitignore: -------------------------------------------------------------------------------- 1 | HELP.md 2 | target/ 3 | !.mvn/wrapper/maven-wrapper.jar 4 | !**/src/main/** 5 | !**/src/test/** 6 | 7 | ### STS ### 8 | .apt_generated 9 | .classpath 10 | .factorypath 11 | .project 12 | .settings 13 | .springBeans 14 | .sts4-cache 15 | 16 | ### IntelliJ IDEA ### 17 | .idea 18 | *.iws 19 | *.iml 20 | *.ipr 21 | 22 | ### NetBeans ### 23 | /nbproject/private/ 24 | /nbbuild/ 25 | /dist/ 26 | /nbdist/ 27 | /.nb-gradle/ 28 | build/ 29 | 30 | ### VS Code ### 31 | .vscode/ 32 | -------------------------------------------------------------------------------- /chapter9/zuul-simple/.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/meteor1993/SpringCloudLearning/be132eb4764de71554abbae1b132dd14face2344/chapter9/zuul-simple/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /chapter9/zuul-simple/.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip 2 | -------------------------------------------------------------------------------- /chapter9/zuul-simple/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 8080 3 | spring: 4 | application: 5 | name: spring-cloud-zuul 6 | #zuul: 7 | # routes: 8 | # api-producer: 9 | # path: /producer/** 10 | # serviceId: spring-cloud-producer 11 | eureka: 12 | client: 13 | service-url: 14 | defaultZone: http://localhost:8761/eureka/ -------------------------------------------------------------------------------- /chapter9/zuul-simple/src/test/java/com/springcloud/zuulsimple/ZuulSimpleApplicationTests.java: -------------------------------------------------------------------------------- 1 | package com.springcloud.zuulsimple; 2 | 3 | import org.junit.Test; 4 | import org.junit.runner.RunWith; 5 | import org.springframework.boot.test.context.SpringBootTest; 6 | import org.springframework.test.context.junit4.SpringRunner; 7 | 8 | @RunWith(SpringRunner.class) 9 | @SpringBootTest 10 | public class ZuulSimpleApplicationTests { 11 | 12 | @Test 13 | public void contextLoads() { 14 | } 15 | 16 | } 17 | --------------------------------------------------------------------------------