|
|
@ -2,23 +2,24 @@ package org.springframework.cloud.client.serviceregistry; |
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import lombok.Getter; |
|
|
|
|
|
|
|
import lombok.Setter; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author Spencer Gibb |
|
|
|
* @author Spencer Gibb |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ConfigurationProperties("spring.cloud.service-registry.auto-registration") |
|
|
|
@ConfigurationProperties("spring.cloud.service-registry.auto-registration") |
|
|
|
|
|
|
|
@Getter |
|
|
|
|
|
|
|
@Setter |
|
|
|
public class AutoServiceRegistrationProperties { |
|
|
|
public class AutoServiceRegistrationProperties { |
|
|
|
|
|
|
|
|
|
|
|
/** If Auto-Service Registration is enabled, default to true. */ |
|
|
|
/** If Auto-Service Registration is enabled, default to true. */ |
|
|
|
private boolean enabled = true; |
|
|
|
private boolean enabled = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 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. */ |
|
|
|
/** Should startup fail if there is no AutoServiceRegistration, default to false. */ |
|
|
|
private boolean failFast = false; |
|
|
|
private boolean failFast = false; |
|
|
|
|
|
|
|
|
|
|
|
public boolean isFailFast() { |
|
|
|
|
|
|
|
return failFast; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setFailFast(boolean failFast) { |
|
|
|
|
|
|
|
this.failFast = failFast; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|