0

In Spring Boot 1.5.1 / SpringMVC with Thymeleaf I created a custom 404.html error page in /resources/templates/error/ If a user goes to a url that is not handled by any controller this 404.html page is shown.

I also noticed that I can display the timestamp, status (404) and error (Not Found) by doing:

<ol>
   <li>Timestamp: <p th:text="${timestamp}">timestamp</p></li>
   <li>Status: <p th:text="${status}">status</p></li>
   <li>Error: <p th:text="${error}">error</p></li>
</ol>

How can I display the requested (invalid) URL that led to the 404 error?

user1583209
  • 1,637
  • 3
  • 24
  • 42

0 Answers0