Sample URL:
../get/1?attr1=1&attr2=2&attr3=3
I do not know the names of attr1, att2, and attr3.
When I ran this code, I get the size of 'allRequestParams' equals to 1
@RequestMapping(value = "/get/", method = RequestMethod.GET)
public String search(
@RequestParam Map<String,Integer> allRequestParams) {
System.out.println(allRequestParams.size());
return "";
}
Is it problem with Spring or I wrote a wrong code. Thank you!