Answer the question
In order to leave comments, you need to log in
Blank page when handling server errors?
There is REST in: Java, Maven, TomCat, MySql, Hibernate. Now I'm doing server error handling 404, 400, etc. In web.xml file added:
<error-page>
<error-code>400</error-code>
<location>/400error.html</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/404error.html</location>
</error-page>
Answer the question
In order to leave comments, you need to log in
Try to specify the full path to the file on the server, for example: /WEB-INF/views/404.html (or wherever you have it there)
Also, look, you are not mapping the application to the root, but in /application_name you can also try /project name/ 404error.html
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question