thymleaf error pages code example
Example 1: create spring 404 error controller
server.error.whitelabel.enabled=false
Example 2: create spring 404 error controller
<!DOCTYPE html>
<html>
<body>
<h1>Something went wrong! </h1>
<h2>Our Engineers are on it</h2>
<a href="/">Go Home</a>
</body>
</html>
Example 3: spring thymeleaf configure error page
create a file called error.html on the resources folder