spring mvc contrller map paramers


    @RequestMapping(value = "test", method = RequestMethod.POST)
    public String register(@RequestParam Map<String, String> params){
    return "test";
    }


    注意:@RequestParam 不能写成(@RequestParam("params"))

你可能感兴趣的:(java,spring,mvc,controller,map)