execution(int com.gc.service.LoggerServiceImpl.add())
当前切点为add一个方法
execution(int com.gc.service.LoggerServiceImpl.*())
*:表示任意个字符,代指方法名可以是任意的
execution(* com.gc.service.LoggerServiceImpl.*())
*:表示任意个字符,代指返回值类型可以是任意的
execution(* com.gc.service.*ServiceImpl.*())
*:表示任意个字符,代指业务类型可以是任意的
execution(* com..service.*ServiceImpl.*())
..(两个点):表示任意层级的目录
execution(* com..service.*ServiceImpl.*(..))
..(后面两个点):表示方法的参数可以任意
错误实例:execution(* *..*.*())
原文:https://www.cnblogs.com/peng-1234/p/14590077.html