我在A.jar包里写了个@Aspect类,要@Pointcut B.jar(第3方的包)里的B类的所有方法,这样行吗??
比如:
@Aspect
public class LoggerAOP {
private static Logger logger = Logger.getLogger(LoggerAOP.class);
@Pointcut("execution(* com.dom4j.*(..))")
public void Logger(){
}
@Before("Logger()")
public void serverLogger_allBeforeLogger(JoinPoint jPoint){
do();
}
启动时后台报错,要怎么写才行,就能Pointcut第3方包的方法????