You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
163
163
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`.
165
166
166
167
For example, to map `404` to a static HTML file, your directory structure would be as follows:
0 commit comments