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.*(..) *)

posted @ 2013-07-12 13:56  yql_dragonfly  阅读(190)  评论(0编辑  收藏  举报