Using HTTP dev client with Post request and Content-Type application/x-www-form-urlencoded
URL: localhost:8080/SpringMVC/welcome
B
It's too late to answer this question, but it could help for new readers,
It seems version issues. I ran all these tests with spring 4.1.4 and found that the order of @RequestBody and @RequestParam doesn't matter.
body= "name=abc", and name = "abc"body ="name=abc", name = "xyz,abc"