# learn-spring-cloud **Repository Path**: pustian/learn-spring-cloud ## Basic Information - **Project Name**: learn-spring-cloud - **Description**: springcloud netflix alibaba 使用 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-06-28 - **Last Updated**: 2023-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 部署 ## 软件 |软件|版本|说明| |---|---|---| |java |1.8 || |maven |3.5.X|| |nacos |2.2.3|| springcloud 配套 |依赖组件|采用版本|其他说明| |---|---|---| |spring-cloud-alibaba |2.2.9.RELEASE | |spring-cloud |Hoxton.SR12 | |spring-boot |2.3.12.RELEASE | https://github.com/alibaba/spring-cloud-alibaba/wiki/版本说明 ## 组件 ![springcloud组件对比](./springcloud.webp) ## 目录说明 |项目名称|父目录|应用目录|项目说明|其他说明| |---|---|---|---|---| |spring-cloud |netflix |config-server|配置中心||| | | |config-repo |配置仓库|| | | |config-client |配置使用|| | | |eureka-server |注册中心 |为增加安全| | | | |eureka-provider-client|系统间调用|| | | |eureka-consumer-feign-client |feign调用 | | | |eureka-consumer-rest-client |resttemplate调用 | | |eureka-hystrix-provider |系统调用-熔断 | | | |eureka-hystrix-consumer-rest | | | |eureka-hystrix-consumer-feign | | | |zuul-server |网关|| | | |gateway-server |网关|比zuul支持长链接| | | |eureka-provider-hystrix-dashboard |hystrix dashboard| | | |eureka-consumer-rest-hystrix-dashboard | | | |eureka-consumer-feign-hystrix-dashboard | | | |turbine-server |dashboard集中 || | | |zipkin-server |sleuth监控traceId || |spring-cloud-alibaba |alibaba|config-client |配置使用|| | | |nacos-provider-client|系统间调用|| | | |nacos-consumer-feign-client |feign调用 | | | |nacos-consumer-rest-client |resttemplate调用 | | |zuul-server ||| | | |gateway-server | || | | |nacos-provider-hystrix | | | |nacos-consumer-feign-hystrix | ## 编译启动 ```bash cd netflix mvn clean package -DskipTests cd alibaba mvn clean package -DskipTests cd arithmetic mvn clean package -DskipTests ``` --- # 其他 ## 项目启动banner区分 在src/main/resources 下新增banner.txt,内容在下面网页中生成 [banner](http://www.patorjk.com) [springboot版本升级文档](https://juejin.cn/post/7129751916002672654) Actuator https://www.cnblogs.com/caoweixiong/p/15325382.html --- # 步骤 预期工作 |||| |---|---|---| |nacos集群||| |降级服务||| |监控||| https://blog.csdn.net/kaizqn/article/details/106335273 https://blog.csdn.net/YonJarLuo/article/details/117957845 https://juejin.cn/post/7062976511850053639 微服务事务一致性 spring boot actutor 安全 https://blog.imgtouch.com/index.php/2023/05/25/springbootactuator-de-an-quan-pei-zhi-shi-yong-springsecurity-zuo-ip-di-zhi-xian-zhi-springboot232/ Q:bootstrap.yml 文件 bootstrap是spring cloud的配置上下文加载。由spring-cloud-content包加载。 加载顺序 若application.yml 和bootstrap.yml 在同一目录下:bootstrap.yml 先加载 application.yml后加载 bootstrap.yml 用于应用程序上下文的引导阶段。bootstrap.yml 由父Spring ApplicationContext加载。 springboot 不加载bootstramp.yml 文件