@RequestMapping(value = "/cars/{id}", method = RequestMethod.POST) public String update(Car car, @PathVariable int id) { carDao.update(id, car); // car.id already set by binding return "redirect:/cars"; }