Skip to content

Commit a8016b5

Browse files
Merge branch '2.7.x' into 3.0.x
Closes gh-34705
2 parents 6a6f4a3 + f234980 commit a8016b5

File tree

1 file changed

+3
-2
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/web

1 file changed

+3
-2
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/web/reactive.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,10 @@ include::code:MyExceptionHandlingController[]
159159

160160
[[web.reactive.webflux.error-handling.error-pages]]
161161
===== Custom Error Pages
162-
If you want to display a custom HTML error page for a given status code, you can add a file to an `/error` directory.
162+
If you want to display a custom HTML error page for a given status code, you can add views that resolve from `error/*`, for example by adding files to a `/error` directory.
163163
Error pages can either be static HTML (that is, added under any of the static resource directories) or built with templates.
164-
The name of the file should be the exact status code or a series mask.
164+
The name of the file should be the exact status code, a status code series mask, or `error` for a default if nothing else matches.
165+
Note that the path to the default error view is `error/error`, whereas with Spring MVC the default error view is `error`.
165166

166167
For example, to map `404` to a static HTML file, your directory structure would be as follows:
167168

0 commit comments

Comments
 (0)