Spring AOP EXPRESSION

基本格式:execution(modifiers-pattern? ret-type-pattern declaring-type-pattern? name-pattern(param-pattern) throws-pattern?

其中蓝色部分表示可选(即可以不填写,或者用*好代替表示任意类型,或者指定某个特定类型)

示例1:  com.cdn.service.FeeService中,所有返回值为int的公共方法

           execution("public int com.cdn.service.FeeService.*(..) *)

原文地址:https://www.cnblogs.com/dragonflyyi/p/3186199.html