随笔 - 232  文章 - 0  评论 - 26  阅读 - 38万 
11 2012 档案
[转]java实现ip检查
摘要:以前项目用到的要求实现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 学业未成 阅读(375) 评论(0) 推荐(0) 编辑
[转]关于 the char 'ox1e' after '' is not a valid xml character
摘要:说明:项目里webservice借口上传数据出异常 日志打印报错类似于标题那种。开始的解决方法是JS正则去掉非汉字、数字、英文、标点符号。后来上网查了下找到下述解决方法。--------------------分割线---------------------------------以下内容转自:http://hi.baidu.com/godtrip/item/90c1a4eec422eb0d560f1d8ajava做WebService接口上传数据,传输格式利用XML来传输。XML不支持Unicode编码的字符串。会导致如下问题:the char 'ox1e' after &# 阅读全文
posted @ 2012-11-16 15:11 学业未成 阅读(6005) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示