mirror of https://gitee.com/stylefeng/roses
【7.3.2】【cache】修复缓存代理配置
parent
4418242bf4
commit
ebf58ce0fb
|
@ -37,7 +37,7 @@ public class TenantCacheProxy implements InvocationHandler {
|
||||||
public <T> CacheOperatorApi<T> bindCacheObject(String tenantCode, CacheOperatorApi<T> target) {
|
public <T> CacheOperatorApi<T> bindCacheObject(String tenantCode, CacheOperatorApi<T> target) {
|
||||||
this.targetCacheObject = target;
|
this.targetCacheObject = target;
|
||||||
this.tenantCode = tenantCode;
|
this.tenantCode = tenantCode;
|
||||||
return (CacheOperatorApi<T>) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getInterfaces(), this);
|
return (CacheOperatorApi<T>) Proxy.newProxyInstance(target.getClass().getClassLoader(), target.getClass().getSuperclass().getInterfaces(), this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue