Resolving Bad Request In Spring MVC Controller
I hardly believe it's 2014 and I've run into an issue that a web search didn't quickly solve.
@RequestMapping(value = "/district/{name}", method = RequestMethod.GET)
public String communityHandler(Model model, @PathVariable String districtName) ... {
@RequestMapping(value = "/district/{name}", method = RequestMethod.GET)
public String communityHandler(Model model, @PathVariable String districtName) ... {
Notice the mismatch between {name} and the PathVariable? Yeah, it took me too long to spot the difference.