HttpHelper using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Net.Security; using Syst ...
post 响应编码 response.setContentType(“text/html;charset=UTF-8”); response.setCharacterEncoding("UTF-8"); 一般设置响应体用第一种 get 请求编码 Tomcat-9会出现乱码 String name = ...
分类:
其他好文 时间:
2020-03-01 01:00:53
阅读次数:
86
使用 npm: $ npm install axios // 为给定 ID 的 user 创建请求 axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (e ...
分类:
移动开发 时间:
2020-02-29 22:07:44
阅读次数:
82
上下文模块 上下文模块主要是针对 HTTP 请求中,request 和 response 的进一步封装,他包括用户的输入和输出,用户的输入即为 request,context 模块中提供了 Input 对象进行解析,用户的输出即为 response,context 模块中提供了 Output 对象进 ...
分类:
其他好文 时间:
2020-02-29 20:09:42
阅读次数:
68
执行docker pull xx.xx.xx.xx/xx/xx,下载私有库的镜像时报错如下: Error response from daemon: Get https://xx.xx.xx.xx/v2/: Service Unavailable 原因大概是docker默认支持https的协议,而私 ...
分类:
Web程序 时间:
2020-02-29 00:37:30
阅读次数:
279
获取中文数据 关于数据在客户端与服务器端的编码 get方式传输到服务器使用的getParameter 默认使用ISO 8859 1去解码 GET方式获取中文数据 方式一:代码转换 又由于传过来的数据是ISO 8859 1编码的数据,此时只要将数据转换为UTF 8即可 方式二:修改Tomcat接受数据 ...
分类:
Web程序 时间:
2020-02-28 18:54:27
阅读次数:
72
背景 项目中开发导入功能,因为数据量比较大,所以要求后端异步操作(个人觉得前端ajax处理最好,有空再试一下)。但是操作中发现改为异步之后,相同代码的情况下会报(No such file or directory)异常 2020-02-28 16:22:51.322 [pool-2-thread-1 ...
分类:
其他好文 时间:
2020-02-28 17:14:26
阅读次数:
239
1、pageEncoding=”UTF-8”的作用是设置JSP编译成Servlet时使用的编码。2、contentType=”text/html;charset=UTF-8”的作用是指定服务器响应给浏览器的编码。 3、request.setCharacterEncoding(“UTF-8”)的作用是 ...
分类:
其他好文 时间:
2020-02-28 13:52:53
阅读次数:
52
1、方法: response=requests.post("https://www.baidu.com/s",data=data) 2、拉勾网职位信息获取 因为拉勾网设置了反爬虫机制,在拉勾网中,一些页面的信息获取方法是post,所以就用到了post方法 在拉勾网中,我们搜索与python相关的职业 ...
分类:
编程语言 时间:
2020-02-27 23:47:13
阅读次数:
123
//Controller @ResponseBody @RequestMapping("/lightSplitBox") @RequiresPermissions("zkgj:detail:list") public R lightSplitBox(@RequestParam Map<String, ...
分类:
其他好文 时间:
2020-02-27 13:25:46
阅读次数:
93