|
|
@@ -39,7 +39,7 @@ public class BlacklistService {
|
|
|
@Resource
|
|
|
private R2dbcEntityTemplate template;
|
|
|
|
|
|
- private static final List<String> firstUrl = List.of("out/planNew/hfoInfo","out/planNew/hfoInfo","out/listening/landingPageList");
|
|
|
+ //private static final List<String> firstUrl = List.of("out/planNew/hfoInfo","out/planNew/hfoInfo","out/listening/landingPageList");
|
|
|
private static final CopyOnWriteArrayList<String> ip_balck_list = new CopyOnWriteArrayList<>();
|
|
|
private static final CopyOnWriteArrayList<String> ip_white_list = new CopyOnWriteArrayList<>();
|
|
|
private static final AtomicInteger ipRateLimitRange= new AtomicInteger();//访问次数
|
|
|
@@ -108,12 +108,12 @@ public class BlacklistService {
|
|
|
return l;
|
|
|
}
|
|
|
|
|
|
- @PostConstruct
|
|
|
- public void postConstruct() {
|
|
|
- getIpBalckList();
|
|
|
- getIpRateLimitRange();
|
|
|
- getWxUrl();
|
|
|
- }
|
|
|
+// @PostConstruct
|
|
|
+// public void postConstruct() {
|
|
|
+// getIpBalckList();
|
|
|
+// getIpRateLimitRange();
|
|
|
+// getWxUrl();
|
|
|
+// }
|
|
|
/**
|
|
|
* 获取缓存中设置次数
|
|
|
*/
|