public interface SpringCloudConfigOperations
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.
|
@Get(value="/{applicationName}/{profiles}") @Produces(single=true) @Retryable(attempts="${spring.cloud.config.config.retry-count:3}", delay="${spring.cloud.config.config.retry-delay:1s}") @Nonnull 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}") @Nonnull 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