摘要:
以前项目用到的要求实现IP访问控制,具体转自哪里忘记了,以为拿过来后自己又改了点。直接上代码public class ipTest { /** * 判断IP是否在指定范围; */ boolean i; public static boolean ipIsValid(String ipSection, String ip) { if (ipSection == null) throw new NullPointerException("IP段不能为空!"); if (ip == null) ... 阅读全文
posted @ 2012-11-27 16:52
学业未成
阅读(385)
评论(0)
推荐(0)
浙公网安备 33010602011771号