获取json数据 名字一样就获取了user1 @RequestMapping("/addUser")2 public String addUser(User user,HttpServletRequest request){3 request.setAttribu...
分类:
编程语言 时间:
2014-07-05 19:04:55
阅读次数:
353
在使用git pull、git push、git clone会报类似如下的错误:
error: The requested URL returned error: 401 Unauthorized while accessing https://git.oschina.net/zemo/demo.git/info/refs
fatal: HTTP request failed
一般...
分类:
系统相关 时间:
2014-07-04 09:27:03
阅读次数:
589
#400/500错误重试
#
#当服务返回400/500状态且当前pool中有存活的node重置http请求,并重新选择pool中的node。
#直到返回正常代码或者轮询完所有存活node后,接受新的http请求
whenCLIENT_ACCEPTED{
setretry0
}
whenHTTP_REQUEST{
sethttp_request[HTTP::request]
}
wh..
分类:
其他好文 时间:
2014-07-04 00:48:07
阅读次数:
681
1、错误描述
严重:Exception occurred during processing request:null
java.lang.reflect.InvocationTargetException.
Caused by:java.lang.OutOfMemoryError:Java heap space.
2、错误原因
3、解决办法...
分类:
其他好文 时间:
2014-07-03 18:03:46
阅读次数:
171
1、错误描述
严重:Exception occurred during processing request:Statement Callback;SQL[ ];OALL8处于不一致状态;
nested exception is java.sql.SQLException:OALL8处于不一致状态.
java.sql.SQLException:...
分类:
数据库 时间:
2014-07-03 17:59:34
阅读次数:
245
Enable OWIN Cross-origin Request...
简述用于windows客户端的一个异步http模块的实现
1.需要实现的feature
1.1 很容易地发起异步http请求,然后回调。
1.2 能够管理http并发数。
1.3 能够支持http超时:不依赖于curl中实现的连接超时及其它超时。
1.4 请求可以取消。
2.参与者和简要分析:
Manager:接收http请求,调用curl。
Request:封装htt...
分类:
其他好文 时间:
2014-07-03 17:33:32
阅读次数:
316
commons-io在struts框架中无法获取upload.parseRequest(request)上传的文件的主要原因是因为struts将request进行了封装,在文件上传时struts会将HttpServletRequest请求被转成了MultiPartRequestWrapper,所以如需使用request,则需要将struts封装好的的MultiPartRequestWrappe..
分类:
其他好文 时间:
2014-07-03 15:19:33
阅读次数:
148
登录时存:HttpCookiecookieUserPower=newHttpCookie("UserPower");cookieUserPower.Value=loginuser._UserPower.ToString();HttpContext.Current.Response.Cookies.Add(cookieUserPower);页面判断:if(Request.Cookies["UserID"]==null){ClientScript.RegisterClientScriptBlo..
分类:
其他好文 时间:
2014-07-03 15:10:26
阅读次数:
343
controller def uploadss @attachment = Attachment.new(:file => request.raw_post) @attachment.author = User.current @attachment.filename = params[:filen...
分类:
其他好文 时间:
2014-07-03 12:38:19
阅读次数:
169