@Client(value="${spring.cloud.config.uri:`http://localhost:8888`}", configuration=SpringCloudClientConfiguration.class) public interface SpringCloudConfigClient
Modifier and Type | Field and Description |
---|---|
static String |
CLIENT_DESCRIPTION |
Modifier and Type | Method and Description |
---|---|
Publisher<ConfigServerResponse> |
readValues(String applicationName,
String profiles)
Reads an application configuration from Spring Config Server.
|
Publisher<ConfigServerResponse> |
readValues(String applicationName,
String profiles,
String label)
Reads a versioned (#label) application configuration from Spring Config Server.
|
static final String CLIENT_DESCRIPTION
@Get(value="/{applicationName}{/profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") Publisher<ConfigServerResponse> readValues(@Nonnull String applicationName, @Nullable String profiles)
applicationName
- The application nameprofiles
- The active profilesPublisher
that emits a list of ConfigServerResponse
@Get(value="/{applicationName}{/profiles}{/label}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") Publisher<ConfigServerResponse> readValues(@Nonnull String applicationName, @Nullable String profiles, @Nullable String label)
applicationName
- The application nameprofiles
- The active profileslabel
- The labelPublisher
that emits a list of ConfigServerResponse