Skip to content

Commit 1640ad0

Browse files
committed
删除无用依赖
1 parent daddf5d commit 1640ad0

File tree

2 files changed

+4
-22
lines changed

2 files changed

+4
-22
lines changed

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

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,32 +16,16 @@
1616

1717
package org.hsweb.concureent.cache.monitor;
1818

19-
import static org.springframework.util.Assert.*;
20-
import static org.springframework.util.ObjectUtils.*;
21-
22-
import java.lang.reflect.Constructor;
23-
import java.util.Arrays;
24-
import java.util.Set;
25-
import java.util.concurrent.Callable;
26-
import java.util.stream.Collectors;
27-
2819
import org.hsweb.commons.StringUtils;
2920
import org.hsweb.web.core.cache.monitor.MonitorCache;
3021
import org.hsweb.web.core.utils.ThreadLocalUtils;
3122
import org.springframework.cache.Cache;
32-
import org.springframework.cache.support.SimpleValueWrapper;
33-
import org.springframework.dao.DataAccessException;
34-
import org.springframework.data.redis.RedisSystemException;
3523
import org.springframework.data.redis.cache.RedisCache;
36-
import org.springframework.data.redis.cache.RedisCacheElement;
37-
import org.springframework.data.redis.cache.RedisCacheKey;
38-
import org.springframework.data.redis.connection.RedisConnection;
39-
import org.springframework.data.redis.connection.ReturnType;
4024
import org.springframework.data.redis.core.RedisCallback;
4125
import org.springframework.data.redis.core.RedisOperations;
42-
import org.springframework.data.redis.serializer.RedisSerializer;
43-
import org.springframework.data.redis.serializer.StringRedisSerializer;
44-
import org.springframework.util.ClassUtils;
26+
27+
import java.util.Set;
28+
import java.util.stream.Collectors;
4529

4630
/**
4731
* Cache implementation on top of Redis.

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import org.slf4j.Logger;
1515
import org.slf4j.LoggerFactory;
1616
import org.springframework.beans.factory.annotation.Autowired;
17-
import org.springframework.core.ResolvableType;
1817
import org.springframework.transaction.annotation.Transactional;
1918

2019
import javax.validation.ConstraintViolation;
@@ -45,7 +44,7 @@ public abstract class AbstractServiceImpl<Po extends GenericPo<PK>, PK> implemen
4544

4645
@Override
4746
public Class<PK> getPKType() {
48-
return (Class<PK>) ClassUtils.getGenericType(this.getClass(), 1);
47+
return (Class<PK>) ClassUtils.getGenericType(org.springframework.util.ClassUtils.getUserClass(this.getClass()), 1);
4948
}
5049

5150
@Override
@@ -88,5 +87,4 @@ protected void assertNotNull(Object po) {
8887
assertNotNull(po, "数据不存在");
8988
}
9089

91-
9290
}

0 commit comments

Comments
 (0)