In spring i have a code to redirect onto jsp paje:
<error-page>
<error-code>404</error-code>
<location>404.jsp</location>
</error-page>
But when i try to use html page with
<location>/WEB-INF/templates/404</location>
or
<location>/WEB-INF/templates/404.html</location>
it shows me 404 standart error, not mine error page.