Fix method name in the Contact sample code

This commit is contained in:
John Lin 2018-09-26 16:20:41 +08:00 committed by Rob Winch
parent 68ffa0fece
commit fe080cadbe
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class AddDeleteContactController {
}
@RequestMapping(value = "/secure/del.htm", method = RequestMethod.GET)
public ModelAndView handleRequest(@RequestParam("contactId") int contactId) {
public ModelAndView delContact(@RequestParam("contactId") int contactId) {
Contact contact = contactManager.getById(Long.valueOf(contactId));
contactManager.delete(contact);