Skip to content

Commit 0622b3e

Browse files
committed
Fix documentation code example error
The "Customizing ConfigurableEmbeddedServletContainer directly" section should use `HttpStatus.NOT_FOUND` and not `HttpStatus.404` in the sample code. Fixes spring-projectsgh-2258
1 parent 20dbf4a commit 0622b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ yourself.
11281128
TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();
11291129
factory.setPort(9000);
11301130
factory.setSessionTimeout(10, TimeUnit.MINUTES);
1131-
factory.addErrorPages(new ErrorPage(HttpStatus.404, "/notfound.html");
1131+
factory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/notfound.html");
11321132
return factory;
11331133
}
11341134
----

0 commit comments

Comments
 (0)