2022年11月9日
摘要:
RestApi请求地址支持多路径访问 @RestController@RequestMapping("/test") //单路径@RequestMapping(path = {"/test","/public/test"}) //请求地址支持多路径,字符串数组
阅读全文
posted @ 2022-11-09 11:37
oktokeep
阅读(56)
推荐(0)
2022年11月4日
摘要:
mysql连接超时的属性设置 2022-10-26 11:09:54.128 [http-nio-6788-exec-5] ERROR o.s.t.i.TransactionAspectSupport#completeTransactionAfterThrowing [line:525] - App
阅读全文
posted @ 2022-11-04 18:03
oktokeep
阅读(2402)
推荐(0)
摘要:
外部系统对接下单幂等性校验逻辑及事务提交锁表的处理 1、如果下单时,已经存在订单,希望能返回外部订单号和本系统订单号,做幂等处理。 2、希望一个外部订单号,只能对应一个有效的本系统订单号 根据请求参数签名来判断是否是同一请求,根据外部订单号来查询。 如果请求参数签名不同,但是外部订单号已经生成订单,
阅读全文
posted @ 2022-11-04 14:59
oktokeep
阅读(190)
推荐(0)
摘要:
mysql数据库慢SQL优化优化来源: 阿里云 云数据库RDS 慢sql 或者CAT监控系统中的Transaction SQL or URL根据平均时间反馈来排查,决定是否增加索引,或者调整业务逻辑代码。 1.场景1-业务查询的条件转换 in 转换业务逻辑,最终达到的结果是一致的。比如根据某些条件来
阅读全文
posted @ 2022-11-04 11:54
oktokeep
阅读(117)
推荐(0)
2022年11月2日
摘要:
http请求方式GET,POST工具类RestTemplate import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import com.dianping.cat.Ca
阅读全文
posted @ 2022-11-02 11:44
oktokeep
阅读(309)
推荐(0)
2022年10月20日
摘要:
Mysql慢sql优化 index1.MySQL的执行过程2.索引的定义3.MySQL执行计划explain or desc4.索引使用/创建规则5.弊端6.设计规范7.SQL建议 1. MySQL 的执行过程 2.索引的定义 3.MySQL执行计划 explain or desc 3.MySQL执
阅读全文
posted @ 2022-10-20 18:58
oktokeep
阅读(352)
推荐(0)
2022年10月13日
摘要:
http请求方式-CloseableHttpClient import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.example.core.mydemo.http.OrderReqVO;
阅读全文
posted @ 2022-10-13 19:10
oktokeep
阅读(221)
推荐(0)
摘要:
http请求方式-HttpClient import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.example.core.mydemo.http.OrderReqVO; import o
阅读全文
posted @ 2022-10-13 19:10
oktokeep
阅读(124)
推荐(0)
摘要:
http请求方式-HttpURLConnection import com.alibaba.fastjson.JSON; import com.example.core.mydemo.http.OrderReqVO; import org.springframework.lang.Nullable;
阅读全文
posted @ 2022-10-13 19:09
oktokeep
阅读(101)
推荐(0)
摘要:
http请求方式-OkHttpClient import com.example.core.mydemo.http.OrderReqVO; import okhttp3.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impor
阅读全文
posted @ 2022-10-13 19:09
oktokeep
阅读(134)
推荐(0)