@Client(value="${spring.cloud.config.uri:`http://localhost:8888`}", configuration=SpringCloudClientConfiguration.class) @Requires(beans=SpringCloudClientConfiguration.class) public interface SpringCloudConfigClient
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_DESCRIPTION |
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<ConfigServerResponse> |
readValues(java.lang.String applicationName,
java.lang.String profiles)
Reads an application configuration from Spring Config Server.
|
org.reactivestreams.Publisher<ConfigServerResponse> |
readValues(java.lang.String applicationName,
java.lang.String profiles,
java.lang.String label)
Reads a versioned (#label) application configuration from Spring Config Server.
|
static final java.lang.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}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull java.lang.String applicationName, @Nullable java.lang.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}") org.reactivestreams.Publisher<ConfigServerResponse> readValues(@NonNull java.lang.String applicationName, @Nullable java.lang.String profiles, @Nullable java.lang.String label)
applicationName
- The application nameprofiles
- The active profileslabel
- The labelPublisher
that emits a list of ConfigServerResponse