---
title: "aop对应的方法定义"
author: "strongant"
date: "2016-07-20T09:27:36Z"
tags: []
categories: ["开源软件"]
slug: "aop"
draft: false
lastmod: "2016-07-20T09:27:36Z"
id: 2312299
url: "https://strongant.iteye.com/blog/2312299"
---

aop:around

public void doAround(ProceedingJoinPoint joinPoint)

 

aop:before和aop:after

public void before(JoinPoint joinPoint)

 

&lt;aop:after-throwing pointcut="" method="afterThrowing" throwing="ex"/&gt;

throwing属性如果有配置，那么方法afterThrowing定义如下

public void afterThrowing(JoinPoint joinPoint, Exception ex)