mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-09 03:52:48 +00:00
Fix method name in the Contact sample code
This commit is contained in:
parent
68ffa0fece
commit
fe080cadbe
@ -69,7 +69,7 @@ public class AddDeleteContactController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RequestMapping(value = "/secure/del.htm", method = RequestMethod.GET)
|
@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));
|
Contact contact = contactManager.getById(Long.valueOf(contactId));
|
||||||
contactManager.delete(contact);
|
contactManager.delete(contact);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user