-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Andreas Schildbach opened SPR-4368 and commented
@RequestMapping largely takes the responsibilities of the former AbstractFormController.isFormSubmission().
Unfortunately, I stumbled upon some cases that are not handled yet by @RequestMapping (well).
- Mapping only matches if command object is present / not present
I use this frequently if a have a form with http-method GET (e.g. read-only search forms). In this case, I cannot distinguish by method, and I do not want to distinguish by parameter (the naming of the parameters is up to Spring Binding / Tag Library).
- Mapping only matches if parameter is not present
Although not needed as urgently as 1), it would make @RequestMappings easier to formulate and a bit more robust. For example, I see some cases where you want a parameter to be present, and on the other related mapping you want the parameter to not be present.
Affects: 2.5.1
Issue Links:
- Request header filtering in @RequestMapping [SPR-5690] #10360 Request header filtering in
@RequestMapping("duplicates")