
aop
imlmy
这个作者很懒,什么都没留下…
展开
-
spring aop版本问题
通过spring aop创建一个拦截器,applicationContext.xml文件配置如下helloWorldActionSpringAOPIntercepter其中SpringIntercepter是拦截器类,实现MethodBeforeAdvice。在发布到tomcat时出现nested exception is java.la原创 2012-12-11 18:55:10 · 2411 阅读 · 0 评论 -
Spring aop拦截器
今天加班,搞定了用spring拦截器捕获其他bean异常。功能比较简单,主要是之前对spring拦截器不熟悉,导致出现问题搞了半天才解决。新建一个自定义的Advice类MyAdvice实现ThrowsAdvice接口的afterThrowing方法。然后再applicationContext.xml中配置拦截器。 mybean myadvice 运原创 2013-03-16 17:51:37 · 3019 阅读 · 1 评论