我在 xml中配置是可以的
然后我在源文件里配置片段如下
@Pointcut("execution(* com.gameart.logic.Logic.*(..)) and args(params)")
public void logic(){}

@Before("logic()")
public void beforeLogic(Object... params){
debug.debug("before logic..."+params[0]);
}
@AfterReturning("logic()")
public void afterLogic(Object... params){
debug.debug("after logic..."+params[0]);
}
出现错误是Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
如果我把@poingcut及logic这个方法去掉,然后再@before和@after方法里都写上execution()是可以执行的,就是想用pointcut就出错了,这是为啥呢
以下是正确的,就是不能用pointcut
@Before("execution(* com.gameart.logic.Logic.*(..)) and args(params)")
public void beforeLogic(Object... params){
debug.debug("before logic..."+params[0]);
}
@AfterReturning("execution(* com.gameart.logic.Logic.*(..)) and args(params)")
public void afterLogic(Object... params){
debug.debug("after logic..."+params[0]);
}