Set ignoreUnknownFields=true on ServerProperties

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

Fixes gh-3903
This commit is contained in:
Phillip Webb 2015-09-10 14:49:41 -07:00
parent e69a5879b0
commit b7e9f805c9
1 changed files with 1 additions and 1 deletions

View File

@ -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 {
/**