IP白名单配置

This commit is contained in:
cwchen 2025-09-09 16:07:11 +08:00
parent 7932d2ad31
commit b6279cbbb7
1 changed files with 2 additions and 2 deletions

View File

@ -107,10 +107,10 @@ public class IpWhitelistFilter implements Filter {
// 定时刷新缓存可选
@Scheduled(fixedRate = refreshTime)
public void refreshCache() {
log.info("开始定时刷新IP白名单缓存...");
// log.info("开始定时刷新IP白名单缓存...");
int sizeBefore = ipCache.size();
ipCache.clear();
log.info("IP白名单缓存刷新完成清理了 {} 个缓存条目", sizeBefore);
// log.info("IP白名单缓存刷新完成清理了 {} 个缓存条目", sizeBefore);
}
private void sendForbiddenResponse(HttpServletResponse response, String message) throws IOException {