Class SpringCloudConfigClientConfig


  • @ConfigRoot(phase=BOOTSTRAP,
                name="spring-cloud-config")
    public class SpringCloudConfigClientConfig
    extends Object
    • Field Detail

      • enabled

        @ConfigItem
        public boolean enabled
        If enabled, will try to read the configuration from a Spring Cloud Config Server
      • failFast

        @ConfigItem
        public boolean failFast
        If set to true, the application will not stand up if it cannot obtain configuration from the Config Server
      • url

        @ConfigItem(defaultValue="http://localhost:8888")
        public String url
        The Base URI where the Spring Cloud Config Server is available
      • label

        @ConfigItem
        public Optional<String> label
        The label to be used to pull remote configuration properties. The default is set on the Spring Cloud Config Server (generally "master" when the server uses a Git backend).
      • connectionTimeout

        @ConfigItem(defaultValue="10S")
        public Duration connectionTimeout
        The amount of time to wait when initially establishing a connection before giving up and timing out.

        Specify `0` to wait indefinitely.

      • readTimeout

        @ConfigItem(defaultValue="60S")
        public Duration readTimeout
        The amount of time to wait for a read on a socket before an exception is thrown.

        Specify `0` to wait indefinitely.

      • username

        @ConfigItem
        public Optional<String> username
        The username to be used if the Config Server has BASIC Auth enabled
      • password

        @ConfigItem
        public Optional<String> password
        The password to be used if the Config Server has BASIC Auth enabled
      • trustStore

        @ConfigItem
        public Optional<Path> trustStore
        TrustStore to be used containing the SSL certificate used by the Config server Can be either a classpath resource or a file system path
      • trustStorePassword

        @ConfigItem
        public Optional<String> trustStorePassword
        Password of TrustStore to be used containing the SSL certificate used by the Config server
      • keyStore

        @ConfigItem
        public Optional<Path> keyStore
        KeyStore to be used containing the SSL certificate for authentication with the Config server Can be either a classpath resource or a file system path
      • keyStorePassword

        @ConfigItem
        public Optional<String> keyStorePassword
        Password of KeyStore to be used containing the SSL certificate for authentication with the Config server
      • keyPassword

        @ConfigItem
        public Optional<String> keyPassword
        Password to recover key from KeyStore for SSL client authentication with the Config server If no value is provided, the key-store-password will be used
      • trustCerts

        @ConfigItem(defaultValue="false")
        public boolean trustCerts
        When using HTTPS and no keyStore has been specified, whether to trust all certificates
      • headers

        @ConfigItem
        public Map<String,​String> headers
        Custom headers to pass the Spring Cloud Config Server when performing the HTTP request
    • Constructor Detail

      • SpringCloudConfigClientConfig

        public SpringCloudConfigClientConfig()
    • Method Detail

      • usernameAndPasswordSet

        public boolean usernameAndPasswordSet()