From 0622b3e987c83c475b25864e8ab06487ca60f69a Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 5 Jan 2015 11:55:44 -0800 Subject: [PATCH] Fix documentation code example error The "Customizing ConfigurableEmbeddedServletContainer directly" section should use `HttpStatus.NOT_FOUND` and not `HttpStatus.404` in the sample code. Fixes gh-2258 --- spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 649be3bb451..d4253eca9b4 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -1128,7 +1128,7 @@ yourself. TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory(); factory.setPort(9000); factory.setSessionTimeout(10, TimeUnit.MINUTES); - factory.addErrorPages(new ErrorPage(HttpStatus.404, "/notfound.html"); + factory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/notfound.html"); return factory; } ----