标签:用户 erro doc html4 title mamicode spring springmvc mic
现在模拟登录的时候,如果用户名或者密码发生异常的时候,使其跳转到自定义的错误页面中去
error.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
错误信息:${e.message}
</body>
</html>
运行结果:
标签:用户 erro doc html4 title mamicode spring springmvc mic
原文地址:https://www.cnblogs.com/dongyaotou/p/12233270.html