程序出错解决
程序出错解决,springboot,数据库等等
小哇666
专注web/大数据
展开
-
解决Java Long类型转为Json后,前台Js调用精度丢失问题
后端JSON字符串{“id”: 1540951455810646018, “name”: “张三”, …},前端通过data.id获取id时,id的值变成了1540951455810646000,id的位数精度缺失了。当实体类中的字段为Long类型,且值超过前端js显示的长度范围时会导致前端回显错误。原创 2024-02-24 21:47:55 · 547 阅读 · 0 评论 -
ibatis.binding.BindingException: Parameter ‘productId‘ not found. Available parameters are [pageable
("abcProduct") AbcProduct abcProduct 注解。,abcProduct.productPrice的形式。文件中,多个参数时,没有加 @Param。原创 2023-11-11 20:23:25 · 148 阅读 · 0 评论 -
springboot 后台Date接收参数,前台传递2022-03-28 15:03:25,报错‘java.lang.String‘ to required type ‘java.util.Date
DateTimeFormat 前端往后端传数据。JsonFormat 用于,后端返回数据到前端。原创 2023-10-30 16:35:40 · 97 阅读 · 0 评论 -
springboot 后台LocalDateTime接收参数,前台传递2022-03-28 15:03:25,报错Caused by: java.time.format.DateTimeParseEx
【代码】springboot 后台LocalDateTime接收参数,前台传递2022-03-28 15:03:25,报错Caused by: java.time.format.DateTimeParseEx。原创 2023-10-28 20:41:45 · 178 阅读 · 0 评论