public static Class<?> getTargetClass(Object proxy) throws Exception {
        if (!AopUtils.isAopProxy(proxy)) {
            return proxy.getClass();//不是代理对象
        }
        return AopUtils.getTargetClass(proxy);
    }
public static Class<?> getTargetClass(Object proxy) throws Exception {
        if (!AopUtils.isAopProxy(proxy)) {
            return proxy.getClass();
        }
        return AopUtils.getTargetClass(proxy);
    }
public static Class < ? > getTargetClass ( Object proxy ) throws Exception { if ( ! AopUtils . isAopProxy ( proxy ) ) { return proxy . getClass ( ) ; //不是代理对象 } return AopUtils . getTargetClass ( proxy ) ; }
获取目标对象class.

@param proxy 代理对象
@return 目标对象class
获取目标对象class .