下面是一段简单的通过IP地址统计访问量的Java代码:
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
public class IpStatistics {
private static Map<String, Integer> ipMap = new HashMap<>();
public static void countIp(HttpServletRequest request) {
String ip = reque