struts-config.xml配置全局异常
写一个类
extends ExceptionHandler 重写execute方法
<global-exceptions>
<exception handler="com.gmcc.boss.common.web.WebExceptionHandler" key="error.common.exception" scope="request" type="java.lang.Exception"/>
</global-exceptions>
写一个类
extends ExceptionHandler 重写execute方法