blob類型是數組類型,展現在前端須要轉成字符串類型前端
使用方法能夠在實體類中定義一個新的String類型的字段,而後經過get方法獲得blob類型字段的值,而後後面的操做都使用這個新的字段便可正則表達式
private byte[] contentText;
private String contentTextShow;
public String getContentTextShow() {
return new String(contentText,StandardCharsets.UTF_8);
}數組
若是想要使用blob字段的部分數據,能夠經過正則表達式去完成字符串