2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018

04/04/2014: 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) ... {

Notice the mismatch between {name} and the PathVariable? Yeah, it took me too long to spot the difference.


subscribe via RSS