spring mvc url encoded 400

张子游回来了 发布于 2014/03/16 22:50
阅读 184
收藏 0

【Gopher China万字分享】华为云的Go语言云原生实战经验!>>>

Request URL:http://127.0.0.1:8080/reader/1/url/http%3A%2F%2Fwww.infoq.com%2Fcn%2Fnews%2F2014%2F03%2Fbuild-social-music-service/
Request Method:GET
Status Code:400 Bad Request
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding:gzip,deflate,sdch
Accept-Language:zh-CN,zh;q=0.8,en;q=0.6,zh-TW;q=0.4
Cache-Control:no-cache
Connection:keep-alive
Cookie:__utma=96992031.117071192.1393678165.1393678165.1393680356.2; __utmz=96992031.1393678165.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmv=96992031.|1=Treatment=A=1; ucenter_left_menu=show
Host:127.0.0.1:8080
Pragma:no-cache
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36
Response Headersview source
Connection:close
Content-Length:0
Date:Sun, 16 Mar 2014 14:47:30 GMT

Server:Apache-Coyote/1.1


@RequestMapping(value = "/url/{url:[\\S]+}/", method = RequestMethod.GET)
@ResponseBody
public ResponseEntity aa(
@PathVariable("url") String url) {


}



加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部