完善公共错误页面

This commit is contained in:
shuzheng 2017-02-03 15:46:03 +08:00
parent e54b89911e
commit c4b6aac8e1
46 changed files with 400 additions and 12 deletions

View File

@ -1 +1,4 @@
404=page not found! 403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -1 +1,4 @@
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01 403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -111,6 +111,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -119,4 +123,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -86,6 +86,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -94,4 +98,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -1 +1,4 @@
404=page not found! 403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -1 +1,4 @@
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01 403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -74,6 +74,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -82,4 +86,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,4 @@
403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -0,0 +1,4 @@
403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -86,6 +86,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -94,4 +98,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,4 @@
403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -0,0 +1,4 @@
403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -86,6 +86,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -94,4 +98,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,4 @@
403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -0,0 +1,4 @@
403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -86,6 +86,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -94,4 +98,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,4 @@
403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -0,0 +1,4 @@
403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -125,6 +125,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -133,4 +137,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>

View File

@ -0,0 +1,4 @@
403=Access forbidden!
404=Page not found!
500=Internal server error!
error=Server error!

View File

@ -0,0 +1,4 @@
403=\u6CA1\u6709\u6743\u9650\uFF01
404=\u9875\u9762\u6CA1\u6709\u627E\u5230\uFF01
500=\u5185\u90E8\u670D\u52A1\u5668\u9519\u8BEF\uFF01
error=\u670D\u52A1\u5668\u53D1\u751F\u9519\u8BEF\uFF01

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="403"/></title>
</head>
<body>
403
</body>
</html>

View File

@ -9,7 +9,7 @@
<html> <html>
<head> <head>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title>500</title> <title><spring:message code="500"/></title>
</head> </head>
<body> <body>
<center style="margin:50px auto"> <center style="margin:50px auto">

View File

@ -0,0 +1,17 @@
<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<c:set var="basePath" value="${pageContext.request.contextPath}"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title><spring:message code="error"/></title>
</head>
<body>
error
</body>
</html>

View File

@ -86,6 +86,10 @@
</welcome-file-list> </welcome-file-list>
<!-- 错误页面 --> <!-- 错误页面 -->
<error-page>
<error-code>403</error-code>
<location>/WEB-INF/jsp/403.jsp</location>
</error-page>
<error-page> <error-page>
<error-code>404</error-code> <error-code>404</error-code>
<location>/WEB-INF/jsp/404.jsp</location> <location>/WEB-INF/jsp/404.jsp</location>
@ -94,4 +98,8 @@
<error-code>500</error-code> <error-code>500</error-code>
<location>/WEB-INF/jsp/500.jsp</location> <location>/WEB-INF/jsp/500.jsp</location>
</error-page> </error-page>
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/WEB-INF/jsp/error.jsp</location>
</error-page>
</web-app> </web-app>