diff --git a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java index a43c68ad..b29e3e96 100644 --- a/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java +++ b/spring-cloud-commons/src/main/java/org/springframework/cloud/client/serviceregistry/AutoServiceRegistrationProperties.java @@ -14,6 +14,9 @@ public class AutoServiceRegistrationProperties { /** Whether to register the management as a service, defaults to true */ private boolean registerManagement = true; + /** Should startup fail if there is no AutoServiceRegistration, default to false. */ + private boolean failFast = false; + public boolean shouldRegisterManagement() { return registerManagement; } @@ -22,9 +25,6 @@ public class AutoServiceRegistrationProperties { this.registerManagement = registerManagement; } - /** Should startup fail if there is no AutoServiceRegistration, default to false. */ - private boolean failFast = false; - public boolean isFailFast() { return failFast; }