Spring MVC @RequestParam values not being extracted from URI as expected
java, spring, spring-mvc
Solution
Some characters in URLs have a special meaning. If they are supposed to be part of a value they need to be escaped.
If your value is T&O= then it needs to be changed to T%26O%3D
Problem
I am wondering how spring split each parameters of a http request. By example i have this method definition : ``` @RequestMapping(value = "/search.do", method = RequestMethod.GET) public String searchGet(ModelMap model, @RequestParam(value = "memberId", required = false) Integer memberId, @RequestParam(value = "member", required = false) String member) {...} ``` and i use this url : ``` /search.do?member=T&O= ``` i get member = T and not member =T&O= The request params are limited to only memberId and member. Can i configure spring for solving this problem ?