version:

<parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.7.15</version>
        <relativePath/>
</parent>

Controller: @PutMapping("/d3") public String d3(@RequestParam("id") String id, @RequestParam("k") int k){ return id+","+k; }

  1. @EnableWebMvc and "PUT" "application/x-www-form-urlencoded" data in body,it's will MissingServletRequestParameterException.
  2. But "POST" "application/x-www-form-urlencoded" data in body everything is ok.
  3. Remove @EnableWebMvc "PUT" "application/x-www-form-urlencoded" data in body everything is ok.

Comment From: bclozel

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

Comment From: idlesysman

Excuse me, thank you!