From 998eddde49fb490f0f562184447c00f5bc9db9e9 Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Thu, 19 Oct 2017 17:08:10 -0400 Subject: [PATCH] Update docs to fix keyResolverName => keyResolver bean --- docs/src/main/asciidoc/spring-cloud-gateway.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index 7f0d8edb..48a01e47 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -357,7 +357,7 @@ The RequestRateLimiter GatewayFilter Factory takes three parameters: `replenishR `burstCapacity` TODO: document burst capacity -`keyResolverName` is the name of a bean that implements the `KeyResolver` interface. +`keyResolver` is a bean that implements the `KeyResolver` interface. In configuration, reference the bean by name using SpEL. `#{@myKeyResolver}` is a SpEL expression referencing a bean with the name `myKeyResolver`. .KeyResolver.java [source,java] @@ -383,7 +383,7 @@ spring: - id: requestratelimiter_route uri: http://example.org filters: - - RequestRateLimiter=10, 20, userKeyResolver + - RequestRateLimiter=10, 20, #{@userKeyResolver} ---- .Config.java