import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import org.springframework.aop.MethodBeforeAdvice;
public class AopProxyFactory {
public static Object createProxy(final Object target,final MethodBeforeAdvice methodBeforeAdive){
return Proxy.new ProxyInstance(
target.getClass().getClassLoader(),
target.getClass().getInterfaces(),
new InvocationHandler(){
public Object invoke(Object proxy,Method method,Object[] args)throws Throwable{
methodBeforeAdive.before(method, args, target);
return method.invoke(target, args);
}
});
}
}
提示return Proxy.new ProxyInstance(  中的Proxy有错误~~~~ 问下怎么回事,包都有不差包!!