{"id":20882472,"url":"https://github.com/zhangdaiscott/springcloudall","last_synced_at":"2025-10-08T03:53:24.595Z","repository":{"id":73296790,"uuid":"266491725","full_name":"zhangdaiscott/SpringCloudAll","owner":"zhangdaiscott","description":"学习 Spring Cloud、Spring Cloud Alibaba、Spring Security \u0026 Spring Security OAuth2","archived":false,"fork":false,"pushed_at":"2020-05-26T14:54:44.000Z","size":33,"stargazers_count":18,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-01T09:05:07.600Z","etag":null,"topics":["spring-cloud","spring-cloud-alibaba","spring-cloud-gateway","spring-security","springboot","springcloud","springcloud-demo","springcloudalibaba","springcloudgateway"],"latest_commit_sha":null,"homepage":"http://www.jeecg.com","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhangdaiscott.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-24T07:30:57.000Z","updated_at":"2024-09-23T13:34:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c30b6103-033e-4334-88d1-f10e3c8c55e7","html_url":"https://github.com/zhangdaiscott/SpringCloudAll","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangdaiscott%2FSpringCloudAll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangdaiscott%2FSpringCloudAll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangdaiscott%2FSpringCloudAll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhangdaiscott%2FSpringCloudAll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhangdaiscott","download_url":"https://codeload.github.com/zhangdaiscott/SpringCloudAll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253797932,"owners_count":21965980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["spring-cloud","spring-cloud-alibaba","spring-cloud-gateway","spring-security","springboot","springcloud","springcloud-demo","springcloudalibaba","springcloudgateway"],"created_at":"2024-11-18T07:32:03.691Z","updated_at":"2025-10-08T03:53:19.556Z","avatar_url":"https://github.com/zhangdaiscott.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpringCloudAll\nSpring Cloud Alibaba 解决方案 —— 学习示例代码\n\n### 技术体系【知识点】\n\n\n- 1、Nacos 服务注册和发现\n- 2、Nacos 统一配置中心\n- 3、熔断降级限流 sentinel\n- 4、feign配合sentinel使用\n- 5、SpringCloud Gateway\n- 6、服务监控 actuator\n- 7、Spring Boot Admin服务监控\n- 8、链路跟踪 skywalking\n- 9、Spring Security集成\n- 10、Spring Security OAuth2集成\n- 11、rabitmq的环境搭建和使用\n- 12、maven多配置环境\n- 13、服务多实例运行\n- 14、分布定时任务 Quartz/XXL-JOB/elastic-job\n- 15、Seata分布式事务\n- 16、Spring Stream\n- 17、分布式文件系统 minio、阿里OSS\n\n### 常用注解\n\n 注解 | 功能 | 位置 \n -|-|- \n@EnableDiscoveryClient   | 启动nacos服务注册发现| 启动类 |\n@EnableFeignClients   | 启动 Feign| 启动类 |\n@FeignClient  | 声明为Feign接口 | 接口类 |\n@EnableAdminServer| Spring Boot Admin Server监控服务端 | 启动类 |\n@SentinelRestTemplate|  |\n\n\n### 环境安装\n 软件 | 访问地址 | 账号 | 启动\n -|-|-|- \n[nacos安装](https://nacos.io/zh-cn/docs/quick-start-docker.html)  | http://localhost:8848/nacos| nacos/nacos | docker启动容器 |\n[sentinel控制台](https://www.cnblogs.com/fx-blog/p/11720220.html)   | http://localhost:8080 |  sentinel/sentinel | 启动命令: java -jar sentinel-dashboard-1.6.3.jar  `本地目录： D:\\JAVA\\alibaba-cloud`|\n\n\n### 测试请求\n\n ``` xml\n# 服务端生产者接口（启动多实例）\nhttp://localhost:8061/echo/123\nhttp://localhost:8061/actuator | 服务端点检查\nhttp://localhost:8061/actuator/nacos-discovery | 服务端点检查\n## 服务端_多实例测试\nhttp://localhost:8062/echo/123 [修改nacos配置端口，启动多实例]\nhttp://localhost:8063/echo/123 [修改nacos配置端口，启动多实例]\n\n\n# 客户端消费者接口\nhttp://localhost:8071/cust/echo/feign\nhttp://localhost:8071/cust/echo/restTemplate\n## 客户端_多实例测试\nhttp://localhost:8072/cust/echo/feign [修改端口，启动多实例]\nhttp://localhost:8073/cust/echo/feign [修改端口，启动多实例]\n\n\n# Gateway(需传递 Head参数 =\u003e Authorization:{任意值})\nhttp://localhost:9999/echo/22\n\n# SpringAdmin\nhttp://localhost:9112\n\n# Security\nhttp://localhost:9111/user\n(admin/123456)\n ```\n\n\n\n\n### 官方文档\n- [spring-cloud-alibaba](https://github.com/alibaba/spring-cloud-alibaba/blob/master/README-zh.md)\n- [spring-cloud-alibaba \u003e html](https://spring-cloud-alibaba-group.github.io/github-pages/greenwich/spring-cloud-alibaba.html#_introduction_of_sentinel)\n- [spring-cloud-gateway](https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.2.2.RELEASE/reference/html/#the-path-route-predicate-factory)\n- [spring-security](https://docs.spring.io/spring-security/site/docs/current/reference/html5/#getting)\n- [spring-security-oauth](https://projects.spring.io/spring-security-oauth/docs/oauth2.html)\n- [Seata 分布式事务](https://seata.io/zh-cn/index.html)\n- [Spring Cloud Stream中文指导手册](https://m.wang1314.com/doc/webapp/topic/20971999.html)\n\n\n\n### 参考文献\n- [微服务后，Swagger接口统一文档](https://blog.csdn.net/qq_31748587/article/details/102563155)\n- 谷歌JSON插件 JSON-Handle\n- [Spring Boot Admin服务监控](https://www.jianshu.com/p/1749f04105fb)\n- [Spring Boot Admin client不再需要](https://my.oschina.net/u/1428688/blog/3110948)\n- [Spring Boot Admin+Nacos从入门到上线](https://blog.csdn.net/qq_38496561/article/details/105945386)\n- [容器使用Undertow替换tomcat](https://blog.csdn.net/moshowgame/article/details/84985765)\n- [Seata分布式事务 整合 SpringCloud](https://seata.io/zh-cn/blog/integrate-seata-with-spring-cloud.html)\n- [Gateway 之限流操作  一](https://www.toutiao.com/i6729667803353186827)\n- [Gateway 之限流操作  二](https://blog.csdn.net/u010889990/article/details/81169328)\n- [Gateway 之限流操作  三](https://www.cnblogs.com/pu20065226/p/11426279.html)\n- [Gateway 实现降级攻略](https://blog.csdn.net/SuperBins/article/details/94732087)\n- [灰度发布名词解释](https://www.cnblogs.com/panchanggui/p/11634026.html)\n- [Nacos动态路由实现](https://www.cnblogs.com/zlt2000/p/11712943.html)\n\n\n\n\n\n### 技巧与工具\n- [在线工具yml和属性互转](https://www.toyaml.com/index.html)\n-  yml文件注意（禁用tab，用俩空格）\n- 谷歌JSON插件 JSON-Handle\n- gateway 支持服务名方式访问\n- sentinel 服务台可以不用\n- [IDEA如何启动多实例](https://blog.csdn.net/zhou520yue520/article/details/81167841)\n- [idea run dashboard](https://blog.csdn.net/m18633778874/article/details/82687389)\n- [idea的Git主干同步到分支](https://blog.csdn.net/weixin_40836179/article/details/87003899)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangdaiscott%2Fspringcloudall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhangdaiscott%2Fspringcloudall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhangdaiscott%2Fspringcloudall/lists"}