Custom Error Pages
Learn how to override the default error page to improve readability.
We'll cover the following...
The default error page
Spring Boot shows the below Whitelabel error page by default, which is quite ugly. This is likely intentional to encourage users to add their own. It should look like this:
Adding error templates
If we add a Thymeleaf template at templates/error
with the error code ...