diff --git a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java index d3297d89..c5c12baf 100644 --- a/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java +++ b/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigProperties.java @@ -16,6 +16,8 @@ package org.springframework.cloud.consul.config; +import javax.validation.constraints.NotNull; + import org.hibernate.validator.constraints.NotEmpty; import org.springframework.boot.context.properties.ConfigurationProperties; @@ -38,7 +40,7 @@ public class ConsulConfigProperties { @NotEmpty private String profileSeparator = ","; - @NotEmpty + @NotNull private Format format = Format.KEY_VALUE; /**