diff --git a/kernel-d-cache/cache-api/src/main/java/cn/stylefeng/roses/kernel/cache/api/tenant/TenantCacheProxy.java b/kernel-d-cache/cache-api/src/main/java/cn/stylefeng/roses/kernel/cache/api/tenant/TenantCacheProxy.java index e2ab2f747..270721017 100644 --- a/kernel-d-cache/cache-api/src/main/java/cn/stylefeng/roses/kernel/cache/api/tenant/TenantCacheProxy.java +++ b/kernel-d-cache/cache-api/src/main/java/cn/stylefeng/roses/kernel/cache/api/tenant/TenantCacheProxy.java @@ -37,7 +37,7 @@ public class TenantCacheProxy implements InvocationHandler { public CacheOperatorApi bindCacheObject(String tenantCode, CacheOperatorApi target) { this.targetCacheObject = target; this.tenantCode = tenantCode; - return (CacheOperatorApi) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), this); + return (CacheOperatorApi) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getSuperclass().getInterfaces(), this); } @Override