@Order(value=0) public class ConfigServicePropertySourceLocator extends Object implements org.springframework.cloud.bootstrap.config.PropertySourceLocator
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigServicePropertySourceLocator.GenericRequestHeaderInterceptor
Adds the provided headers to the request.
|
| Constructor and Description |
|---|
ConfigServicePropertySourceLocator(ConfigClientProperties defaultProperties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.env.PropertySource<?> |
locate(org.springframework.core.env.Environment environment) |
Collection<org.springframework.core.env.PropertySource<?>> |
locateCollection(org.springframework.core.env.Environment environment) |
void |
setRestTemplate(org.springframework.web.client.RestTemplate restTemplate) |
public ConfigServicePropertySourceLocator(ConfigClientProperties defaultProperties)
@Retryable(interceptor="configServerRetryInterceptor") public org.springframework.core.env.PropertySource<?> locate(org.springframework.core.env.Environment environment)
locate in interface org.springframework.cloud.bootstrap.config.PropertySourceLocator@Retryable(interceptor="configServerRetryInterceptor") public Collection<org.springframework.core.env.PropertySource<?>> locateCollection(org.springframework.core.env.Environment environment)
locateCollection in interface org.springframework.cloud.bootstrap.config.PropertySourceLocatorpublic void setRestTemplate(org.springframework.web.client.RestTemplate restTemplate)
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.