Request Mapping returning error 404
问题 This is my controller that maps a request to this url http://localhost:8080/SpringMVCJSON/rest/kfc/brands contoller file @Controller @RequestMapping("/kfc/brands") public class JSONController { @RequestMapping(value = "{name}", method = RequestMethod.GET) public @ResponseBody Shop getShopInJSON(@PathVariable String name) { Shop shop = new Shop(); shop.setName(name); shop.setStaffName(new String[] { "name1", "name2" }); return shop; } this is the web.xml with the servlet request that