Commit 0622b3e9 authored by Phillip Webb's avatar Phillip Webb

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
parent 20dbf4ab
...@@ -1128,7 +1128,7 @@ yourself. ...@@ -1128,7 +1128,7 @@ yourself.
TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory(); TomcatEmbeddedServletContainerFactory factory = new TomcatEmbeddedServletContainerFactory();
factory.setPort(9000); factory.setPort(9000);
factory.setSessionTimeout(10, TimeUnit.MINUTES); factory.setSessionTimeout(10, TimeUnit.MINUTES);
factory.addErrorPages(new ErrorPage(HttpStatus.404, "/notfound.html"); factory.addErrorPages(new ErrorPage(HttpStatus.NOT_FOUND, "/notfound.html");
return factory; return factory;
} }
---- ----
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment