判断byte[]是否为空
import org.apache.commons.lang3.ArrayUtils;
byte[] bytes = null;
if(ArrayUtils.isEmpty(bytes)){
System.out.println("为空");
}else {
System.out.println("不为空");
}
import org.apache.commons.lang3.ArrayUtils;
byte[] bytes = null;
if(ArrayUtils.isEmpty(bytes)){
System.out.println("为空");
}else {
System.out.println("不为空");
}