From 13237ee38b75455226f63980ee9e0a1efd043fba Mon Sep 17 00:00:00 2001 From: Ryan Baxter Date: Tue, 30 Jan 2018 10:28:35 -0500 Subject: [PATCH] Clarify functionality available through /refresh --- docs/src/main/asciidoc/spring-cloud-commons.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-commons.adoc b/docs/src/main/asciidoc/spring-cloud-commons.adoc index ce492a49..d0f2f07e 100644 --- a/docs/src/main/asciidoc/spring-cloud-commons.adoc +++ b/docs/src/main/asciidoc/spring-cloud-commons.adoc @@ -269,9 +269,9 @@ method call you just need to invalidate its cache entry. The `RefreshScope` is a bean in the context and it has a public method `refreshAll()` to refresh all beans in the scope by clearing the -target cache. There is also a `refresh(String)` method to refresh an -individual bean by name. This functionality is exposed in the -`/refresh` endpoint (over HTTP or JMX). +target cache. This functionality is exposed in the +`/refresh` endpoint (over HTTP or JMX). There is also a `refresh(String)` method to refresh an +individual bean by name. NOTE: `@RefreshScope` works (technically) on an `@Configuration` class, but it might lead to surprising behaviour: e.g. it does *not* @@ -614,4 +614,4 @@ HTTP client and `OkHttpClientConnectionPoolFactory` for the OK HTTP client. You your own implementation of these beans if you would like to customize how the HTTP clients are created in downstream projects. You can also disable the creation of these beans by setting `spring.cloud.httpclientfactories.apache.enabled` or `spring.cloud.httpclientfactories.ok.enabled` to -`false`. \ No newline at end of file +`false`.