springMVC获得HttpServletRequest对象
时间:2014-01-14 21:19:41
收藏:0
阅读:418
在springMVC的controller中获得HttpServletRequest对象
@RequestMapping("/test")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void test(HttpServletRequest request){
System.out.println(request.getServletPath());
}
原文:http://www.cnblogs.com/yiban/p/3513034.html
评论(0)
