Gateway源码
2020-07-15 10:37:31 0 举报
spring-cloud-gateway主流程源码
作者其他创作
大纲/内容
invokeHandler
GatewayMetricsFilter
handle()
filterWhen
GatewayAutoConfiguration初始化自动装载
延伸阅读http://micrometer.io/docs/registry/prometheus可以整合grafana
文档
FilteringWebHandlerMono<Void> filter()
过滤器链new DefaultGatewayFilterChain(combined)
mapping.getHandler(exchange)SimpleHandlerAdapter
RoutePredicateHandlerMappinggetHandlerInternal
LoadBanlanceFilter
List<GatewayFilter> combined
spring-cloud-starter-gateway.jarspring-cloud-gateway-core.jar
ForwardRoutingFilterfilter()
DispatchHandler.handler()
使用了
Doc
RoutePredicateHandlerMappinglookupRoute
FilteringWebHandler.handle()
Http下游服务
很多BeanRoutePredicateHandlerMappingCachingRouteLocatorFilteringWebHandler等等
@BeanRouteLocatorBuilder
@ConditionalOnClass(DispatcherHandler.class)
CachingRouteLocatorgetRoutes
Ribbon
getHandlerInternal()
Webflux
route.getFilters()
webHandler.handle(exchange)
@AutoConfigureBefore@AutoConfigureAfter
0 条评论
下一页