Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏

部分 VIII. Spring Cloud

目录

82. Spring Cloud
82.1. Spring Cloud 相关的 application.properties 配置
82.1.1. 启用或禁用 bootstrap
82.1.2. bootstrap.properties 配置文件
83. Spring Cloud Config
83.1. Maven 项目 pom.xml 文件
83.2. Server
83.2.1. Maven config 模块
83.2.2. Application
83.2.3. application.properties
83.2.4. Git 仓库
83.2.5. 测试服务器
83.3. Client
83.3.1. Maven pom.xml
83.3.2. Application
83.3.3. bootstrap.properties
83.3.4. 测试 client
83.4. Config 高级配置
83.4.1. 仓库配置
83.4.2. Config server 用户认证
83.4.3. 加密敏感数据
83.4.4. Spring Cloud Config JDBC Backend
83.5. Old
83.5.1. Server (Camden.SR5)
83.5.2. Client (Camden.SR5)
84. Spring Cloud Consol
84.1. Spring Cloud Consul 配置
84.2. Maven 父项目
84.3. Consul 服务生产者
84.3.1. Maven
84.3.2. application.properties
84.3.3. SpringApplication
84.3.4. TestController
84.4. Consul 服务消费者
84.4.1. Maven
84.4.2. application.properties
84.4.3. SpringApplication
84.4.4. TestController
84.5. Openfeign
84.5.1. Maven
84.5.2. application.properties
84.5.3. SpringApplication
84.5.4. Feign 接口
84.5.5. TestController
85. Spring Cloud Netflix
85.1. Eureka Server
85.1.1. Maven
85.1.2. Application
85.1.3. application.properties
85.1.4. 检查注册服务器
85.2. Eureka Client
85.2.1. Maven
85.2.2. Application
85.2.3. RestController
85.2.4. application.properties
85.2.5. 测试
85.3. Feign client
85.3.1. Maven
85.3.2. Application
85.3.3. interface
85.3.4. application.properties
85.3.5. 测试
85.3.6. fallback
85.4. 为 Eureka Server 增加用户认证
85.4.1. Maven
85.4.2. application.properties
85.4.3. Eureka Client
85.4.4. Feign Client
85.5. Eureka 配置项
85.5.1. /eureka/apps
85.5.2. Eureka instance 配置项
85.5.3. Eureka client 配置项
85.5.4. Eureka Server配置项
85.6. ribbon
85.6.1.
85.6.2. LoadBalancerClient 实例
85.6.3. Ribbon 相关配置
85.7. 获取 EurekaClient 信息
85.8. Zuul
85.8.1. Maven
85.8.2. EnableZuulProxy
85.8.3. application.yml
85.8.4. 负载均衡配置
86. Openfeign
86.1. Openfeign 扫描包配置
86.2. 用户认证
86.3. 应用实例
86.4. 配置连接方式
86.4.1. httpclient
86.4.2. okhttp
86.5. 配置手册
87. Spring Cloud Gateway
87.1. Gateway 例子
87.1.1. Maven
87.1.2. SpringApplication
87.1.3. application.yml
87.1.4. RouteLocator 方式
87.2. 路由配置
87.2.1. 转发操作
87.2.2. URL 参数
88. Spring Cloud Sleuth
88.1. logback 安装
89. Spring Cloud with Kubernetes
89.1. Config
89.1.1. Maven 依赖
89.1.2. Spring Cloud 配置文件
89.1.3. 程序文件
89.1.4. Kubernetes 编排脚本
89.1.5. 测试
89.2. 注册发现
89.2.1. Maven 父项目
89.2.2. provider
89.2.3. consumer
89.2.4. 测试
89.2.5.
90. Spring Cloud Alibaba
90.1. 安装 Nacos
90.1.1. Docker 安装 Nacos
90.1.2. Kubernetes 安装 Nacos
90.1.3. IP限制,白名单
90.1.4. 防火墙配置
90.2. Kubernetes 部署微服务
90.2.1. pom.xml 中加入 docker 插件
90.2.2. 容器启动脚本
90.2.3. 构建 docker 镜像
90.2.4. 编排 kubernetes 容器
90.2.5. 启动指定 nacos
90.3. Nacos 配置中心/注册中心代码实例
90.3.1. Maven
90.3.2. SpringBootApplication
90.3.3. ConfigController
90.3.4. 配置文件
90.4. FAQ
90.4.1. 禁用 Nacos
90.4.2. 禁止注册
90.4.3. Failed to bind properties under 'server.tomcat.basedir' to java.io.File:
90.4.4. 不读取 bootstrap.yaml 文件
90.4.5. WARN [com.alibaba.nacos.client.naming:177] [,] - out of date data received, old-t: 1665711914993, new-t: 1665711902390
90.4.6. User limit of inotify instances reached or too many open files
90.4.7. 开启权限
90.4.8. ERROR Whitelabel
90.4.9.
91. FAQ
91.1. Cannot execute request on any known server
91.2. @EnableDiscoveryClient与@EnableEurekaClient 区别
91.3. Feign请求超时
91.4. 已停止的微服务节点注销慢或不注销
91.5. Feign 启动出错 PathVariable annotation was empty on param 0.
91.6. Feign 提示 Consider defining a bean of type 'common.feign.Cms' in your configuration.
91.7. Load balancer does not have available server for client
91.8. Eureka Client (Dalston.SR1)
91.8.1. Maven
91.8.2. Application
91.8.3. RestController
91.8.4. application.properties
91.8.5. 测试
91.9. Config Server(1.3.1.RELEASE)
91.9.1. Server
91.9.2. Client
91.10. feign.RetryableException: Read timed out executing

1. Spring Cloud Stream