09 2020 档案

摘要:在请求一个@PostMapping接口时报错 not support Post Request 很奇怪,路径复制过去的没写错,入参的类也加了@RequestBody注解的. 后来发现这个路径被其他路径给错误映射上了,例:之前接口路径:/user/{id} 现在请求路径:/user/location 阅读全文
posted @ 2020-09-27 10:18 White_白 阅读(598) 评论(0) 推荐(0) 编辑
摘要:参考文章: https://www.cnblogs.com/Jason-Xiang/p/10220231.html 问题:同一组数据前后运算结果不一致 BigDecimal为我们做浮点数运算提供了便利,但是也要注意其精度问题,特别是在做乘法 除法运算之时 精度设置方法 setScale(int ne 阅读全文
posted @ 2020-09-11 10:47 White_白 阅读(1089) 评论(0) 推荐(0) 编辑
摘要:1.统计今天数据 and to_days(create_time) = to_days(now()) 2.统计本周 YEARWEEK(date_format(create_time,'%Y-%m-%d'),1) = YEARWEEK(now(),1) 2.1 统计上周 YEARWEEK(date_f 阅读全文
posted @ 2020-09-10 18:14 White_白 阅读(1233) 评论(0) 推荐(0) 编辑
摘要:异常信息 Error while extracting response for type [class com.xxx.xxx.provider.user.entity.User] and content type [application/json]; nested exception is o 阅读全文
posted @ 2020-09-03 11:37 White_白 阅读(12523) 评论(0) 推荐(0) 编辑
摘要:在一个复杂的业务中执行insert操作时报错 java.sql.SQLException: io.seata.core.exception.RmTransactionException: Response[ TransactionException[branch register request f 阅读全文
posted @ 2020-09-03 11:00 White_白 阅读(4148) 评论(3) 推荐(0) 编辑

点击右上角即可分享
微信分享提示