annotate consul config properties as validated (#291)
This commit is contained in:
@@ -21,12 +21,14 @@ import javax.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
/**
|
||||
* @author Spencer Gibb
|
||||
*/
|
||||
@ConfigurationProperties("spring.cloud.consul")
|
||||
@Data
|
||||
@Validated
|
||||
public class ConsulProperties {
|
||||
/** Consul agent hostname. Defaults to 'localhost'. */
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user