---
title: "spirng aop 切面"
author: "cczzyc"
date: "2015-03-05T15:10:38Z"
tags: []
categories: ["互联网"]
slug: "spirng-aop"
draft: false
lastmod: "2015-03-05T15:10:38Z"
id: 2188910
url: "https://hardworkbird.iteye.com/blog/2188910"
---

modifiers-pattern：方法的操作权限

ret-type-pattern：返回值

declaring-type-pattern：方法所在的包

name-pattern：方法名

parm-pattern：参数名

throws-pattern：异常

其中，除ret-type-pattern和name-pattern之外，其他都是可 选的。上例中，execution(* com.spring.service.\*.\*(..))表示com.spring.service包下，返回值为任意类型；方法名任意；参数不作限制的 所有方法。