[Spring MVC]- 如何检索地图中的所有表单参数?

[Spring MVC]- How can I retrieve all form params in a map?

我想检索地图中的所有表单参数

类似于:

@RequestMapping(value = "/login", method = RequestMethod.POST)
public String login(Map<String, Object> formParams) {
    //implementation
}

PS:我正在使用 Spring MVC(版本 4.1.1.RELEASE)

对参数应用@RequestParam 注释。在此处查看更多信息:http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-requestparam

"When an @RequestParam annotation is used on a Map or MultiValueMap argument, the map is populated with all request parameters."