Skip to content

Commit b7e9f80

Browse files
committed
Set ignoreUnknownFields=true on ServerProperties
Update ServerProperties so that unknown SERVER_* environment properties do not cause startup failures. Fixes gh-3903
1 parent e69a587 commit b7e9f80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
* @author Andy Wilkinson
5757
* @author Ivan Sopov
5858
*/
59-
@ConfigurationProperties(prefix = "server", ignoreUnknownFields = false)
59+
@ConfigurationProperties(prefix = "server", ignoreUnknownFields = true)
6060
public class ServerProperties implements EmbeddedServletContainerCustomizer, Ordered {
6161

6262
/**

0 commit comments

Comments
 (0)