Browse Source

Add `@NestedConfigurationProperty` to transport.

Needed in `EurekaClientConfigBean` because `CloudEurekaTransportConfig` is a separate class.

Fixes gh-2138
pull/6/head
Spencer Gibb 7 years ago
parent
commit
afc8a99d7e
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 5
      spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientConfigBean.java

5
spring-cloud-netflix-eureka-client/src/main/java/org/springframework/cloud/netflix/eureka/EurekaClientConfigBean.java

@ -17,13 +17,13 @@ @@ -17,13 +17,13 @@
package org.springframework.cloud.netflix.eureka;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.core.env.PropertyResolver;
import org.springframework.util.StringUtils;
@ -33,6 +33,8 @@ import com.netflix.discovery.shared.transport.EurekaTransportConfig; @@ -33,6 +33,8 @@ import com.netflix.discovery.shared.transport.EurekaTransportConfig;
import lombok.Data;
import static org.springframework.cloud.netflix.eureka.EurekaConstants.DEFAULT_PREFIX;
/**
* @author Dave Syer
*/
@ -57,6 +59,7 @@ public class EurekaClientConfigBean implements EurekaClientConfig, EurekaConstan @@ -57,6 +59,7 @@ public class EurekaClientConfigBean implements EurekaClientConfig, EurekaConstan
*/
private boolean enabled = true;
@NestedConfigurationProperty
private EurekaTransportConfig transport = new CloudEurekaTransportConfig();
/**

Loading…
Cancel
Save