<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.8</version>
</dependency>
StringUtils工具类
boolean isEmpty = StringUtils.isEmpty(xxxStr);
boolean isNotEmpty = StringUtils.isNotEmpty(xxxStr);
EqualsBuilder()
帮助生成equals方法,可以自定义要比较哪些字段
HashCodeBuilder()
帮助生成hashCode方法,可以自定义要hash的字段或排除哪些字段
FileUtils工具类
byte[] byteArr = FileUtils.readFileToByteArray(xxxFille);//读取整个文件的内容,返回byte数组