Browse Source

Set ignoreUnknownFields=true on ServerProperties

Update ServerProperties so that unknown SERVER_* environment properties
do not cause startup failures.

Fixes gh-3903
pull/4212/head
Phillip Webb 11 years ago
parent
commit
b7e9f805c9
  1. 2
      spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

2
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java

@ -56,7 +56,7 @@ import org.springframework.util.StringUtils; @@ -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 {
/**

Loading…
Cancel
Save