1、Controller方法上获取
@RequestMapping(value = "/aliyun/ccc/callComing", method = RequestMethod.POST) public String callComing(HttpServletRequest request) {
}
2、通过注解
@Autowired
HttpServletRequest request;
3、通过代码获取
((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest()