# spring_cloud_alibaba **Repository Path**: DebuggingOnProd/spring_cloud_alibaba ## Basic Information - **Project Name**: spring_cloud_alibaba - **Description**: 学习微服务 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-20 - **Last Updated**: 2021-05-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 卑微服务_工程 ## 整体设计架构 ### springcloud Alibaba ### 启动顺序 1. 先启动nacos服务注册与中心 2. 启动skywalking 服务追踪(可选) 3. 启动mq 4. 启动各个模块 5. 启动网关 #### _8.20日志_ gateway中web 和webflux不兼容 必须排除其中一个 小目标 - gateway鉴权 **nacos分布式配置中心** ==dataId设置== ``` 在springcloud中data的格式 ${prefix}-${spring.profiles.active}.${file-extension} ``` - `prefix` 默认为 `spring.application.name` 的值,也可以通过配置项 `spring.cloud.nacos.config.prefix`来配置。 - `spring.profiles.active` 即为当前环境对应的 profile,详情可以参考 [Spring Boot文档](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html#boot-features-profiles)。 **注意:当 `spring.profiles.active` 为空时,对应的连接符 `-` 也将不存在,dataId 的拼接格式变成 `${prefix}.${file-extension}`** - `file-exetension` 为配置内容的数据格式,可以通过配置项 `spring.cloud.nacos.config.file-extension` 来配置。目前只支持 `properties` 和 `yaml` 类型。 - 通过 Spring Cloud 原生注解 `@RefreshScope` 实现配置自动更新 ## _WebFlux_ 3. 与openfegin请求路径引发冲突,导致报错,修改openfien