diff --git a/1.3.x/multi/multi__spring_cloud_commons_common_abstractions.html b/1.3.x/multi/multi__spring_cloud_commons_common_abstractions.html index 5adab984..250759bc 100644 --- a/1.3.x/multi/multi__spring_cloud_commons_common_abstractions.html +++ b/1.3.x/multi/multi__spring_cloud_commons_common_abstractions.html @@ -15,7 +15,9 @@ on the classpath to cause the Spring Boot application to register with the servi Registration registration = constructRegistration(); this.registry.register(registration); } -}
Each ServiceRegistry implementation has its own Registry implementation.
By default, the ServiceRegistry implementation will auto-register the running service. To disable that behavior, there are two methods. You can set @EnableDiscoveryClient(autoRegister=false) to permanently disable auto-registration. You can also set spring.cloud.service-registry.auto-registration.enabled=false to disable the behavior via configuration.
A /service-registry actuator endpoint is provided by Commons. This endpoint relys on a Registration bean in the Spring Application Context. Calling /service-registry/instance-status via a GET will return the status of the Registration. A POST to the same endpoint with a String body will change the status of the current Registration to the new value. Please see the documentation of the ServiceRegistry implementation you are using for the allowed values for updating the status and the values retured for the status.
RestTemplate can be automatically configured to use ribbon. To create a load balanced RestTemplate create a RestTemplate @Bean and use the @LoadBalanced qualifier.
![]() | Warning |
|---|---|
A |
@Configuration
+}Each ServiceRegistry implementation has its own Registry implementation.
ZookeeperRegistration used with ZookeeperServiceRegistryEurekaRegistration used with EurekaServiceRegistryConsulRegistration used with ConsulServiceRegistryIf you are using the ServiceRegistry interface, you are going to need to pass the
+correct Registry implementation for the ServiceRegistry implementation you
+are using.
By default, the ServiceRegistry implementation will auto-register the running service. To disable that behavior, there are two methods. You can set @EnableDiscoveryClient(autoRegister=false) to permanently disable auto-registration. You can also set spring.cloud.service-registry.auto-registration.enabled=false to disable the behavior via configuration.
A /service-registry actuator endpoint is provided by Commons. This endpoint relys on a Registration bean in the Spring Application Context. Calling /service-registry/instance-status via a GET will return the status of the Registration. A POST to the same endpoint with a String body will change the status of the current Registration to the new value. Please see the documentation of the ServiceRegistry implementation you are using for the allowed values for updating the status and the values retured for the status.
RestTemplate can be automatically configured to use ribbon. To create a load balanced RestTemplate create a RestTemplate @Bean and use the @LoadBalanced qualifier.
![]() | Warning |
|---|---|
A |
@Configuration public class MyConfiguration { @LoadBalanced diff --git a/1.3.x/single/spring-cloud-commons.html b/1.3.x/single/spring-cloud-commons.html index 42d8fb95..2c452d92 100644 --- a/1.3.x/single/spring-cloud-commons.html +++ b/1.3.x/single/spring-cloud-commons.html @@ -202,7 +202,9 @@ on the classpath to cause the Spring Boot application to register with the servi Registration registration = constructRegistration(); this.registry.register(registration); } -}
Each ServiceRegistry implementation has its own Registry implementation.
By default, the ServiceRegistry implementation will auto-register the running service. To disable that behavior, there are two methods. You can set @EnableDiscoveryClient(autoRegister=false) to permanently disable auto-registration. You can also set spring.cloud.service-registry.auto-registration.enabled=false to disable the behavior via configuration.
A /service-registry actuator endpoint is provided by Commons. This endpoint relys on a Registration bean in the Spring Application Context. Calling /service-registry/instance-status via a GET will return the status of the Registration. A POST to the same endpoint with a String body will change the status of the current Registration to the new value. Please see the documentation of the ServiceRegistry implementation you are using for the allowed values for updating the status and the values retured for the status.
RestTemplate can be automatically configured to use ribbon. To create a load balanced RestTemplate create a RestTemplate @Bean and use the @LoadBalanced qualifier.
![]() | Warning |
|---|---|
A |
@Configuration
+}Each ServiceRegistry implementation has its own Registry implementation.
ZookeeperRegistration used with ZookeeperServiceRegistryEurekaRegistration used with EurekaServiceRegistryConsulRegistration used with ConsulServiceRegistryIf you are using the ServiceRegistry interface, you are going to need to pass the
+correct Registry implementation for the ServiceRegistry implementation you
+are using.
By default, the ServiceRegistry implementation will auto-register the running service. To disable that behavior, there are two methods. You can set @EnableDiscoveryClient(autoRegister=false) to permanently disable auto-registration. You can also set spring.cloud.service-registry.auto-registration.enabled=false to disable the behavior via configuration.
A /service-registry actuator endpoint is provided by Commons. This endpoint relys on a Registration bean in the Spring Application Context. Calling /service-registry/instance-status via a GET will return the status of the Registration. A POST to the same endpoint with a String body will change the status of the current Registration to the new value. Please see the documentation of the ServiceRegistry implementation you are using for the allowed values for updating the status and the values retured for the status.
RestTemplate can be automatically configured to use ribbon. To create a load balanced RestTemplate create a RestTemplate @Bean and use the @LoadBalanced qualifier.
![]() | Warning |
|---|---|
A |
@Configuration public class MyConfiguration { @LoadBalanced diff --git a/1.3.x/spring-cloud-commons.xml b/1.3.x/spring-cloud-commons.xml index ee37d002..2b66dab9 100644 --- a/1.3.x/spring-cloud-commons.xml +++ b/1.3.x/spring-cloud-commons.xml @@ -363,6 +363,20 @@ public class MyConfiguration { } }Each +ServiceRegistry implementation has its ownRegistry implementation.+ ++ ++ ZookeeperRegistration used withZookeeperServiceRegistry + ++ EurekaRegistration used withEurekaServiceRegistry + ++ ConsulRegistration used withConsulServiceRegistry If you are using the ServiceRegistry interface, you are going to need to pass the +correctRegistry implementation for theServiceRegistry implementation you +are using.ServiceRegistry Auto-Registration By default, the ServiceRegistry implementation will auto-register the running service. To disable that behavior, there are two methods. You can set@EnableDiscoveryClient(autoRegister=false) to permanently disable auto-registration. You can also setspring.cloud.service-registry.auto-registration.enabled=false to disable the behavior via configuration.