摘要: 方法一: 用java自带的方法 先将字符串转为字符数组,然后用Integer.toHexString方法进行转换。 缺点:中文容易乱码 方法二: 使用apache的包codec中的方法 org.apache.commons.codec.binary.Hex#encodeHexString(byte[ 阅读全文
posted @ 2018-09-11 11:03 WanderingAlbatross 阅读(2486) 评论(0) 推荐(0) 编辑