读书人

[转]Struts2+Spring 中使用AOP拦截exe

发布时间: 2012-11-01 11:11:32 作者: rapoo

[转]Struts2+Spring 中使用AOP拦截execute方法,出现get方法空指针异常 分享
Struts2+Spring 中使用Spring AOP拦截execute方法,出现get方法NullPointerException 异常,无法获取页面信息,经N多次Google后解决。方法为:<aop:config proxy-target-, "出现异常");throwable.printStackTrace();return "exception";}return returnValue;}}

然后在applicationContext.xml中这样配置:



就报错了,请问一下有什么问题吗?

读书人网 >软件架构设计

热点推荐