因为前端显示19位数值精度问题,后端转string再返回前端

[{"resPid":1234567891234567891}]

List<Resource> reourceList = resource.getResourceList();
Map<String,Object> map = new HashMap();
List list = new ArrayList();
for(Resource resource : resourceList){
  String resPid = String.valueOf(resource.getResPid);
  map.put("resPid",resPid);
  list.add(map);
}
//然后把list传到resourceList里面
resources.setReourceList(list);
上一篇:springboot 读取resource下文件(IDE和jar内都能读到)


下一篇:Oracle学习笔记:ORA-22992 cannot use LOB locators selected from remote tables