spring error to template code example Example: spring thymeleaf configure error page create a file called error.html on the resources folder