...
|
...
|
@@ -14,10 +14,11 @@ import com.monitor.mysql.mapper.MalIpRuleMapper; |
|
|
import com.monitor.other.maliciousip.contants.MaliciousIpContants;
|
|
|
import com.monitor.other.maliciousip.model.*;
|
|
|
import com.monitor.other.maliciousip.service.MaliciousIpService;
|
|
|
import com.monitor.other.maliciousip.util.*;
|
|
|
import com.monitor.other.util.ZkClientUtil;
|
|
|
import com.monitor.other.maliciousip.util.IpWhiteListUtil;
|
|
|
import com.monitor.other.maliciousip.util.RedisDataByApiUtil;
|
|
|
import com.monitor.other.maliciousip.util.RedisReadMaliciousUtil;
|
|
|
import com.monitor.other.maliciousip.util.RedisWriteUtil;
|
|
|
import com.util.GetUsersInfoUtil;
|
|
|
import com.yoho.core.config.ConfigReader;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang.math.NumberUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
...
|
...
|
@@ -27,13 +28,11 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.core.ScanOptions;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.text.DecimalFormat;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -47,16 +46,7 @@ public class MaliciousIpServiceImpl implements MaliciousIpService { |
|
|
* 日志接口
|
|
|
*/
|
|
|
private Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
@Autowired
|
|
|
@Qualifier("core-config-reader")
|
|
|
private ConfigReader configReader;
|
|
|
|
|
|
@Autowired
|
|
|
private ZkClientUtil zkClientUtil;
|
|
|
|
|
|
@Autowired
|
|
|
private RedisReadUtil redisRead;
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
private RedisWriteUtil redisWrite;
|
...
|
...
|
|