1<web-app ...>
2
3 <servlet>
4 <servlet-name>mvc-dispatcher</servlet-name>
5 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
6 <load-on-startup>1</load-on-startup>
7 </servlet>
8
9 <servlet-mapping>
10 <servlet-name>mvc-dispatcher</servlet-name>
11 <url-pattern>*.htm</url-pattern>
12 </servlet-mapping>
13
14 //...
15 <error-page>
16 <error-code>404</error-code>
17 <location>/WEB-INF/pages/404.htm</location>
18 </error-page>
19
20</web-app>
1<!DOCTYPE html>
2<html>
3<body>
4<h1>Something went wrong! </h1>
5<h2>Our Engineers are on it</h2>
6<a href="/">Go Home</a>
7</body>
8</html>
9