Hello i am create REST on Java, Maven, TomCat, MySql, Hibernate. And i am do error handling 404, 400 and other. I am add in web.xml:
<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>
but when error occurs, browser show blank page. When i am open file 400error.html by:
file:///D:/myapp/src/main/webapp/400error.html
file open correct, but when i execute file by:
http://localhost:8080/myapp/400error.html
i am get blank page in browser. How solve this problem
Aucun commentaire:
Enregistrer un commentaire