---
title: "sturts2异常"
author: "jknmae"
date: "2012-02-20T20:29:06Z"
tags: []
categories: ["编程语言"]
slug: "sturts2"
draft: false
lastmod: "2012-02-20T20:27:04Z"
id: 1414648
url: "https://jknmae.iteye.com/blog/1414648"
---

对于struts2的Action的所抛的异常在inteceptor 中得到拦截可在struts.xml中配制全局变量 \[code="java"] /error.jsp \[/code] 这里要注意result 必需写在exception-mappings前