blob类型是数组类型,展现在前端须要转成字符串类型前端
使用方法能够在实体类中定义一个新的String类型的字段,而后经过get方法获得blob类型字段的值,而后后面的操做都使用这个新的字段便可正则表达式
private byte[] contentText;
private String contentTextShow;
public String getContentTextShow() {
return new String(contentText,StandardCharsets.UTF_8);
}数组
若是想要使用blob字段的部分数据,能够经过正则表达式去完成字符串