Jelajahi Sumber

删除无用依赖

zhouhao 8 tahun lalu
induk
melakukan
1640ad05f8

+ 3 - 19
hsweb-web-concurrent/hsweb-web-concurrent-cache/src/main/java/org/hsweb/concureent/cache/monitor/RedisMonitorCache.java

@@ -16,32 +16,16 @@
 
 package org.hsweb.concureent.cache.monitor;
 
-import static org.springframework.util.Assert.*;
-import static org.springframework.util.ObjectUtils.*;
-
-import java.lang.reflect.Constructor;
-import java.util.Arrays;
-import java.util.Set;
-import java.util.concurrent.Callable;
-import java.util.stream.Collectors;
-
 import org.hsweb.commons.StringUtils;
 import org.hsweb.web.core.cache.monitor.MonitorCache;
 import org.hsweb.web.core.utils.ThreadLocalUtils;
 import org.springframework.cache.Cache;
-import org.springframework.cache.support.SimpleValueWrapper;
-import org.springframework.dao.DataAccessException;
-import org.springframework.data.redis.RedisSystemException;
 import org.springframework.data.redis.cache.RedisCache;
-import org.springframework.data.redis.cache.RedisCacheElement;
-import org.springframework.data.redis.cache.RedisCacheKey;
-import org.springframework.data.redis.connection.RedisConnection;
-import org.springframework.data.redis.connection.ReturnType;
 import org.springframework.data.redis.core.RedisCallback;
 import org.springframework.data.redis.core.RedisOperations;
-import org.springframework.data.redis.serializer.RedisSerializer;
-import org.springframework.data.redis.serializer.StringRedisSerializer;
-import org.springframework.util.ClassUtils;
+
+import java.util.Set;
+import java.util.stream.Collectors;
 
 /**
  * Cache implementation on top of Redis.

+ 1 - 3
hsweb-web-service/hsweb-web-service-simple/src/main/java/org/hsweb/web/service/impl/AbstractServiceImpl.java

@@ -14,7 +14,6 @@ import org.hsweb.web.service.commons.SimpleUpdateService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.core.ResolvableType;
 import org.springframework.transaction.annotation.Transactional;
 
 import javax.validation.ConstraintViolation;
@@ -45,7 +44,7 @@ public abstract class AbstractServiceImpl<Po extends GenericPo<PK>, PK> implemen
 
     @Override
     public Class<PK> getPKType() {
-        return (Class<PK>) ClassUtils.getGenericType(this.getClass(), 1);
+        return (Class<PK>) ClassUtils.getGenericType(org.springframework.util.ClassUtils.getUserClass(this.getClass()), 1);
     }
 
     @Override
@@ -88,5 +87,4 @@ public abstract class AbstractServiceImpl<Po extends GenericPo<PK>, PK> implemen
         assertNotNull(po, "数据不存在");
     }
 
-
 }