第一种方法:用@RequestParam。

@RequestMapping(params="m=update", method=RequestMethod.POST)
public String updateAction(Model model,
        @RequestParam Map<String,String> allRequestParams)
{
    ......
}

第二种方法:用request.getParameterMap()。

@RequestMapping(params="m=update", method=RequestMethod.POST)
public String updateAction(Model model)
{
    Map<String, String[]> allRequestParams = getRequest().getParameterMap();
    ......
}

相关文章:

  • 2022-12-23
  • 2020-05-06
  • 2022-12-23
  • 2021-09-08
  • 2023-03-10
  • 2021-08-18
猜你喜欢
  • 2021-09-08
  • 2021-09-08
  • 2021-09-08
  • 2021-09-08
  • 2022-12-23
  • 2021-04-24
  • 2022-12-23
相关资源
相似解决方案