转自:https://blog.csdn.net/bao19901210/article/details/23370407
1.需要在web.xml中配置相关信息
2.如果配置是html时,不用另做配置
如果配置是Jsp时,需要把isErrorPage设置为true,
及<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isErrorPage="true"%>
3.获取异常信息及输出
浙公网安备 33010602011771号