【发布时间】:2012-03-14 18:03:17
【问题描述】:
我想使用 HttpServletRequest 从 url 读取 requestParams 数据
http://localhost:8080/api/type?name=xyz&age=20
我的控制器中的方法没有定义@RequestParam,它只是
@RequestMapping(value = "/**", method = RequestMethod.GET)
public ResponseEntity<String> getResponse(
final HttpServletRequest request) {}
我只想使用请求读取参数而不是整个 url。
【问题讨论】: