Hi all.
From the spring docs:
27.1.8 Error Handling
Spring Boot provides an /error mapping by default that
handles all errors in a sensible way, and it is registered as a
‘global’ error page in the
servlet container. For machine clients it
will produce a JSON response with details of the error, the HTTP
status and the exception message. For browser clients there is a
‘whitelabel’ error view that renders the same data in HTML
format (to customize it just add a View that resolves to
‘error’).
My question is why is there a request mapping to /error ?
I can add a page called error.ftl (I'm using freemarker) and it will use that one as the error page but I don't know what the request mapping is for.