您的位置:首页 > 编程语言 > ASP

Spring AOP + AspectJ annotation

2014-05-27 13:44 435 查看
In this tutorial, we show you how to integrate AspectJ annotation with Spring AOP framework. In simple, Spring AOP + AspectJ allow you to intercept method easily.

Common AspectJ annotations :

@Before – Run before the method execution

@After – Run after the method returned a result

@AfterReturning – Run after the method returned a result, intercept the returned result as well.

@AfterThrowing – Run after the method throws an exception

@Around – Run around the method execution, combine all three advices above.

http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: