补充目录
This commit is contained in:
@@ -1,3 +1,15 @@
|
|||||||
|
- [Spring Cloud Circuit Breaker](#spring-cloud-circuit-breaker)
|
||||||
|
- [配置Resilience4J Circuit Breakers](#配置resilience4j-circuit-breakers)
|
||||||
|
- [关闭自动装配](#关闭自动装配)
|
||||||
|
- [默认配置](#默认配置)
|
||||||
|
- [自定义ExecutorService](#自定义executorservice)
|
||||||
|
- [指定Circuit Breaker 配置](#指定circuit-breaker-配置)
|
||||||
|
- [Circuit Breaker属性配置](#circuit-breaker属性配置)
|
||||||
|
- [全局默认](#全局默认)
|
||||||
|
- [Configs Properties Configuration](#configs-properties-configuration)
|
||||||
|
- [实例属性设置](#实例属性设置)
|
||||||
|
|
||||||
|
|
||||||
# Spring Cloud Circuit Breaker
|
# Spring Cloud Circuit Breaker
|
||||||
Spring Cloud Circuit Breaker项目包含Resilience4J实现和Spring Retry实现。
|
Spring Cloud Circuit Breaker项目包含Resilience4J实现和Spring Retry实现。
|
||||||
## 配置Resilience4J Circuit Breakers
|
## 配置Resilience4J Circuit Breakers
|
||||||
|
|||||||
@@ -1,3 +1,21 @@
|
|||||||
|
- [Eureka](#eureka)
|
||||||
|
- [Service Discovery: Eureka Client](#service-discovery-eureka-client)
|
||||||
|
- [将Eureka Client包含到项目中](#将eureka-client包含到项目中)
|
||||||
|
- [向Eureka中注册](#向eureka中注册)
|
||||||
|
- [status page和health indicator](#status-page和health-indicator)
|
||||||
|
- [Eureka的健康检查](#eureka的健康检查)
|
||||||
|
- [Eureka实例和客户端的元数据](#eureka实例和客户端的元数据)
|
||||||
|
- [修改Eureka instance id](#修改eureka-instance-id)
|
||||||
|
- [使用EurekaClient](#使用eurekaclient)
|
||||||
|
- [注册服务速度](#注册服务速度)
|
||||||
|
- [Eureka Server](#eureka-server)
|
||||||
|
- [Eureka Server的启动](#eureka-server的启动)
|
||||||
|
- [高可用](#高可用)
|
||||||
|
- [单机模式](#单机模式)
|
||||||
|
- [Peer Awareness](#peer-awareness)
|
||||||
|
- [IP地址注册](#ip地址注册)
|
||||||
|
|
||||||
|
|
||||||
# Eureka
|
# Eureka
|
||||||
## Service Discovery: Eureka Client
|
## Service Discovery: Eureka Client
|
||||||
服务发现是基于微服务体系结构的关键之一。在微服务体系结构中,如果手动配置每个客户端,这将会很困难,并且很脆弱。
|
服务发现是基于微服务体系结构的关键之一。在微服务体系结构中,如果手动配置每个客户端,这将会很困难,并且很脆弱。
|
||||||
@@ -169,4 +187,4 @@ eureka:
|
|||||||
hostname: peer3
|
hostname: peer3
|
||||||
```
|
```
|
||||||
### IP地址注册
|
### IP地址注册
|
||||||
在某些场景下,可能更喜欢通过ip地址而不是hostname来进行注册。如果将`eureka.instance.preferIpAddress`设置为true,那么在应用注册到eureka时,会使用ip地址而不是
|
在某些场景下,可能更喜欢通过ip地址而不是hostname来进行注册。如果将`eureka.instance.preferIpAddress`设置为true,那么在应用注册到eureka时,会使用ip地址而不是hostname
|
||||||
|
|||||||
@@ -1,3 +1,36 @@
|
|||||||
|
- [spring cloud gateway](#spring-cloud-gateway)
|
||||||
|
- [项目引入spring cloud gateway](#项目引入spring-cloud-gateway)
|
||||||
|
- [Spring Cloud gateway核心概念](#spring-cloud-gateway核心概念)
|
||||||
|
- [Spring Cloud Gateway如何工作](#spring-cloud-gateway如何工作)
|
||||||
|
- [配置route predicate factories和gateway filter factories](#配置route-predicate-factories和gateway-filter-factories)
|
||||||
|
- [shortcut配置方式](#shortcut配置方式)
|
||||||
|
- [Route Predicate Factories](#route-predicate-factories)
|
||||||
|
- [After Route Predicate Factory](#after-route-predicate-factory)
|
||||||
|
- [Before Route Predicate Factory](#before-route-predicate-factory)
|
||||||
|
- [Between Route Predicate Factory](#between-route-predicate-factory)
|
||||||
|
- [Cookie Route Predicate Factory](#cookie-route-predicate-factory)
|
||||||
|
- [Header Route Predicate Factory](#header-route-predicate-factory)
|
||||||
|
- [Host Route Predicate Factory](#host-route-predicate-factory)
|
||||||
|
- [Method Route Predicate Factory](#method-route-predicate-factory)
|
||||||
|
- [Path Route Predicate Factory](#path-route-predicate-factory)
|
||||||
|
- [Query Route Predicate Factory](#query-route-predicate-factory)
|
||||||
|
- [RemoteAddr Route Predicate Factory](#remoteaddr-route-predicate-factory)
|
||||||
|
- [修改Remote Addr的解析方式](#修改remote-addr的解析方式)
|
||||||
|
- [Weight Route Predicate Factory](#weight-route-predicate-factory)
|
||||||
|
- [XForwarded Remote Addr Route Predicate](#xforwarded-remote-addr-route-predicate)
|
||||||
|
- [GatewayFilter Factory](#gatewayfilter-factory)
|
||||||
|
- [AddRequestHeader GatewayFilter Factory](#addrequestheader-gatewayfilter-factory)
|
||||||
|
- [AddRequestHeadersIfNotPresent GatewayFilter Factory](#addrequestheadersifnotpresent-gatewayfilter-factory)
|
||||||
|
- [AddRequestParameter GatewayFilter Factory](#addrequestparameter-gatewayfilter-factory)
|
||||||
|
- [AddResponseHeader GatewayFilter Factory](#addresponseheader-gatewayfilter-factory)
|
||||||
|
- [CircuitBreaker GatewayFilter Factory](#circuitbreaker-gatewayfilter-factory)
|
||||||
|
- [CacheRequestBody GatewayFilter Factory](#cacherequestbody-gatewayfilter-factory)
|
||||||
|
- [DedupeResponseHeader GatewayFilter Factory](#deduperesponseheader-gatewayfilter-factory)
|
||||||
|
- [默认filters](#默认filters)
|
||||||
|
- [Global Filters](#global-filters)
|
||||||
|
- [组合Global Filter和Gateway Filter](#组合global-filter和gateway-filter)
|
||||||
|
|
||||||
|
|
||||||
# spring cloud gateway
|
# spring cloud gateway
|
||||||
## 项目引入spring cloud gateway
|
## 项目引入spring cloud gateway
|
||||||
如果要在项目中引入spring cloud gateway,可以在项目pom文件中添加如下依赖:
|
如果要在项目中引入spring cloud gateway,可以在项目pom文件中添加如下依赖:
|
||||||
|
|||||||
Reference in New Issue
Block a user