Skip to content

Commit de34ef4

Browse files
Polish document (#1510)
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 0df8c22 commit de34ef4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/modules/ROOT/pages/spring-cloud-commons/application-context-services.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ Generally, we would not recommend that approach for detecting changes (although
167167
If you have a scaled-out client application, it is better to broadcast the `EnvironmentChangeEvent` to all the instances instead of having them polling for changes (for example, by using the https://github.com/spring-cloud/spring-cloud-bus[Spring Cloud Bus]).
168168

169169
The `EnvironmentChangeEvent` covers a large class of refresh use cases, as long as you can actually make a change to the `Environment` and publish the event.
170-
Note that those APIs are public and part of core Spring).
170+
Note that those APIs are public and part of core Spring.
171171
You can verify that the changes are bound to `@ConfigurationProperties` beans by visiting the `/configprops` endpoint (a standard Spring Boot Actuator feature).
172172
For instance, a `DataSource` can have its `maxPoolSize` changed at runtime (the default `DataSource` created by Spring Boot is a `@ConfigurationProperties` bean) and grow capacity dynamically.
173173
Re-binding `@ConfigurationProperties` does not cover another large class of use cases, where you need more control over the refresh and where you need a change to be atomic over the whole `ApplicationContext`.

docs/modules/ROOT/pages/spring-cloud-commons/common-abstractions.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ are using.
110110

111111
By default, the `ServiceRegistry` implementation auto-registers the running service.
112112
To disable that behavior, you can set:
113+
113114
* `@EnableDiscoveryClient(autoRegister=false)` to permanently disable auto-registration.
114115
* `spring.cloud.service-registry.auto-registration.enabled=false` to disable the behavior through configuration.
115116

0 commit comments

Comments
 (0)