From b7e9f805c94e67b56d9c3a9cc201c19dc2e759f9 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 10 Sep 2015 14:49:41 -0700 Subject: [PATCH] Set ignoreUnknownFields=true on ServerProperties Update ServerProperties so that unknown SERVER_* environment properties do not cause startup failures. Fixes gh-3903 --- .../boot/autoconfigure/web/ServerProperties.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java index eeda381f9a..4c827d890a 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java @@ -56,7 +56,7 @@ import org.springframework.util.StringUtils; * @author Andy Wilkinson * @author Ivan Sopov */ -@ConfigurationProperties(prefix = "server", ignoreUnknownFields = false) +@ConfigurationProperties(prefix = "server", ignoreUnknownFields = true) public class ServerProperties implements EmbeddedServletContainerCustomizer, Ordered { /**