摘要: 使用axios提交类型为application/x-www-form-urlencoded数据的正确姿势: let formData = new URLSearchParams() formData.append('param1', param1) formData.append('param2', 阅读全文
posted @ 2023-04-27 14:16 mingruqi 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 微服务之间的大多都是使用 HTTP 通信,这自然少不了使用 HttpClient。 在不适用 Spring 前,一般使用 Apache HttpClient 和 Ok HttpClient 等,而一旦引入 Spring,就有了更好选择 - RestTemplate。 想接受一个 Form 表单请求, 阅读全文
posted @ 2023-04-27 10:16 mingruqi 阅读(85) 评论(0) 推荐(0) 编辑
摘要: RestTemplate时出现RestClientException的解决办法 1.先来看一下报错吧 2.我的写法 Map<String, Object> params = paramRequest(); params.put("unionId", unionId); params.put("use 阅读全文
posted @ 2023-04-27 10:11 mingruqi 阅读(208) 评论(0) 推荐(0) 编辑
摘要: $file = fopen("test.txt", 'a'); $file.fwrite($file,"\n写入一行新数据"); fclose($file); 阅读全文
posted @ 2023-04-27 09:34 mingruqi 阅读(10) 评论(0) 推荐(0) 编辑