diff --git a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java index 5c34cf4b39..f37679910d 100644 --- a/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java +++ b/spring-boot/src/main/java/org/springframework/boot/context/properties/ConfigurationProperties.java @@ -72,8 +72,9 @@ public @interface ConfigurationProperties { boolean ignoreUnknownFields() default true; /** - * Flag to indicate that validation errors can be swallowed. If set they will be - * logged, but not propagate to the caller. + * Flag to indicate that an exception should be raised if a Validator is + * available and validation fails. If it is set to false, validation errors will be swallowed. + * They will be logged, but not propagated to the caller. * @return the flag value (default true) */ boolean exceptionIfInvalid() default true;