Page,pageContext,request,response,session,application,out,config,exception Page指的是JSP被翻译成Servlet的对象的引用。 pageContext对象可以用来获得其他8个内置对象,还可以作为JSP的域范围对象使用,p ...
分类:
Web程序 时间:
2020-01-14 23:38:08
阅读次数:
94
1 public void DownLoadFile() 2 { 3 Response.ContentType = "text/html"; 4 Response.Write(GetMsg(1)); 5 } 6 7 8 public string GetMsg(int type) 9 { 10 St ...
分类:
Web程序 时间:
2020-01-14 16:17:18
阅读次数:
100
原文地址:https://www.jianshu.com/p/63c5985fb48e Jackson作为springMVC默认的MessageConverter(消息序列化工具),经常在项目中使用,如果熟悉Jackson常用的使用方法,特性化机制,就会事半功倍,极大提高前后端数据交互的灵活性。 m ...
分类:
编程语言 时间:
2020-01-14 16:09:53
阅读次数:
83
1.'Response' object has no attribute '__getitem__':'Response'对象没有属性' getitem__' response对象的属性r.status_code HTTP请求的返回状态r.text HTTP响应内容的字符串形式,即:url对应的页面 ...
分类:
其他好文 时间:
2020-01-14 13:05:12
阅读次数:
71
fiddler的使用 在使用火狐浏览器进行抓包,需要手动代理配置HTTP代理:172.0.0.1,端口号为8888 fiddler远程操作手机,手机需要更改WLAN→代理→手动→主机名(ip地址)→端口(8888),电脑需要修改tools→connections→选中allow remote com ...
分类:
其他好文 时间:
2020-01-14 12:53:41
阅读次数:
72
如何将josn的数据序列化和反序列化实现: 声明一个变量: private static final ObjectMapper MAPPER=new ObjectMapper(); 这个类中就有序列化和反序列的方法: 反序列化: User user=MAPPER.readValue(response ...
分类:
其他好文 时间:
2020-01-13 19:52:55
阅读次数:
76
@ExceptionHandler(MaxUploadSizeExceededException.class) public void handleException(MaxUploadSizeExceededException ex, HttpServletResponse response) t ...
分类:
编程语言 时间:
2020-01-13 16:29:11
阅读次数:
110
```JavaScriptaxios .get('/captcha', { params: param, responseType: 'arraybuffer' }) .then(response => { return 'data:image/png;base64,' + btoa( new Ui... ...
分类:
其他好文 时间:
2020-01-13 16:14:01
阅读次数:
76
String origin = filterContext.HttpContext.Request.Headers["Origin"]; filterContext.HttpContext.Response.AppendHeader("Access-Control-Allow-Origin", "* ...
分类:
Web程序 时间:
2020-01-13 13:16:47
阅读次数:
106
在HTTP连接中报文分为请求(request)和响应(response)两种。每种报文在HTTP首部都有不同的字段来标识不同的用途。 1. 请求报文:HTTP协议使用TCP协议进行传输,在应用层协议发起交互之前,首先是TCP的三次握手。完成了TCP三次握手后,客户端会向服务器发出一个请求报文。请求报 ...
分类:
Web程序 时间:
2020-01-11 20:01:27
阅读次数:
112