From the Spring doc, query params in @RequestMapping can be negated, thus resolving only requests without the given parameter:
Expressions can be negated by using the "!=" operator, as in "myParam!=myValue". "myParam" style expressions are also supported, with such parameters having to be present in the request (allowed to have any value). Finally, "!myParam" style expressions indicate that the specified parameter is not supposed to be present in the request.
From the Spring doc, query params in
@RequestMapping
can be negated, thus resolving only requests without the given parameter: