日期:2014-05-16  浏览次数:20790 次

AspectJ方法

引自:http://www.mkyong.com/spring3/spring-aop-aspectj-annotation-example/

AspectJ方法

  1. @Before – Run before the method execution
  2. @After – Run after the method returned a result
  3. @AfterReturning – Run after the method returned a result, intercept the returned result as well.
  4. @AfterThrowing – Run after the method throws an exception
  5. @Around – Run around the method execution, combine all three advices above.