2017年7月26日
摘要: 如果SpringMVC的action中发生异常,我们想将其跳转到一个固定的错误页面,可以通过applicationContext.xml中增加如下配置实现: 例如,我的代码中有一个算数错误: 此时的action发生异常,会跳转到/pages/common/error.jsp页面上去。 阅读全文
posted @ 2017-07-26 17:42 kuillldan 阅读(631) 评论(0) 推荐(0) 编辑