Class ConsulConfigProperties
java.lang.Object
org.springframework.cloud.consul.config.ConsulConfigProperties
@ConfigurationProperties("spring.cloud.consul.config")
@Validated
public class ConsulConfigProperties
extends Object
- Author:
- Spencer Gibb
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThere are many ways in which we can specify configuration in consul i.e., Nested key value style: Where value is either a constant or part of the key (nested).static classConsul watch properties. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotEmpty String@NotEmpty String@NotNull ConsulConfigProperties.FormatgetName()@NotEmpty StringgetWatch()voidinit()booleanbooleanvoidsetAclToken(String aclToken) voidsetDataKey(@NotEmpty String dataKey) voidsetDefaultContext(@NotEmpty String defaultContext) voidsetEnabled(boolean enabled) voidsetFailFast(boolean failFast) voidsetFormat(@NotNull ConsulConfigProperties.Format format) voidvoidDeprecated.voidsetPrefixes(List<String> prefixes) voidsetProfileSeparator(@NotEmpty String profileSeparator) voidtoString()
-
Field Details
-
PREFIX
Prefix for configuration properties.- See Also:
-
-
Constructor Details
-
ConsulConfigProperties
public ConsulConfigProperties()
-
-
Method Details
-
init
@PostConstruct public void init() -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getPrefixes
-
setPrefixes
-
getPrefix
@DeprecatedConfigurationProperty(reason="replaced to support multiple prefixes", replacement="spring.cloud.consul.config.prefixes") public String getPrefix() -
setPrefix
Deprecated. -
getDefaultContext
-
setDefaultContext
-
getProfileSeparator
-
setProfileSeparator
-
getFormat
-
setFormat
-
getDataKey
-
setDataKey
-
getAclToken
-
setAclToken
-
getWatch
-
setWatch
-
isFailFast
public boolean isFailFast() -
setFailFast
public void setFailFast(boolean failFast) -
getName
-
setName
-
toString
-