I got 1 problem and can not solve. I'm getting a POST request and am getting a variable from RequestMapping, but the encoding is getting it all wrong.
Request URL: 127.0.0.1:8080/projeto/ws/cidade/Uberl%C3%A2ndia
Controller:
@RequestMapping (value = "/city/{name}", method=RequestMethod.POST, produces=MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> doGetPath(@PathVariable("name") String name) {
}
Value returned on @PathVariable("name"): Uberlândia
Correct return: Uberlândia
Can anyone help me?