Using HTTP dev client with Post request and Content-Type application/x-www-form-urlencoded
URL: localhost:8080/SpringMVC/welcome B
You could also just change the @RequestParam default required status to false so that HTTP response status code 400 is not generated. This will allow you to place the Annotations in any order you feel like.
@RequestParam(required = false)String name