byte[] json=(byte[])entity.getItem_detail();
page.setItem_detail(new String(json,"utf-8"));
主要是先把数据库中的blob数据转成字节数据读出 然后把数据根据前端需要的编码格式编码
byte[] json=(byte[])entity.getItem_detail();
page.setItem_detail(new String(json,"utf-8"));
主要是先把数据库中的blob数据转成字节数据读出 然后把数据根据前端需要的编码格式编码