标签:ret har ges repos 语法 amp sys cto 方法
<!-- https://mvnrepository.com/artifact/org.apache.directory.studio/org.apache.commons.codec -->
<dependency>
<groupId>org.apache.directory.studio</groupId>
<artifactId>org.apache.commons.codec</artifactId>
<version>1.8</version>
</dependency>
DigestUtils.md5Hex(behaviorInterestStr.getBytes());
getBytes() 方法有两种形式:
getBytes(String charsetName): 使用指定的字符集将字符串编码为 byte 序列,并将结果存储到一个新的 byte 数组中。
getBytes(): 使用平台的默认字符集将字符串编码为 byte 序列,并将结果存储到一个新的 byte 数组中。
public byte[] getBytes(String charsetName) throws UnsupportedEncodingException
或
public byte[] getBytes()
charsetName -- 支持的字符集名称。
返回 byte 数组。
以上程序执行结果为:
返回值:[B@7852e922
返回值:[B@4e25154f
返回值:[B@70dea4e标签:ret har ges repos 语法 amp sys cto 方法
原文地址:https://www.cnblogs.com/lzh1043060917/p/13898636.html