What is the simplest way to access an unnamed request parameter in a Spring MVC controller? Is there an annotation for this similar to @RequestParam?
HTTP Delete request with unnamed parameter:
http://localhost/myEndPoint?someUnnamedParam
Controller:
public class MyController {
@RequestMapping(value = {"/myEndPoint"}, method = RequestMethod.DELETE)
public void deleteThing() {
// Do something with unnamed param
}
}
Details: Spring 3.0.7
?valueas opposed to?name=valuehttp://localhost/myEndPoint?someUnnamedParam.