See following Spring REST example, if a request such as “http://localhost:8080/site/name/exemple#name” is submitted, Spring returns “exemple“ and extract half and delete text after #.
@Controller
@RequestMapping("/site")
public class SiteController {
@RequestMapping(value = "/name/{myname}", method = RequestMethod.GET)
//myname='exemple'
...
}
How to fix it ?