Class ContactController

java.lang.Object
deu.cse.spring_webmail.contacts.ContactController

@Controller @RequestMapping("/contacts") public class ContactController extends Object
연락처 컨트롤러
  • Field Details

  • Constructor Details

    • ContactController

      public ContactController()
  • Method Details

    • contacts

      @GetMapping public String contacts(org.springframework.ui.Model model, Principal principal)
      연락처 목록 페이지 요청 메소드
      Returns:
      연락처 목록 페이지
    • addContact

      @GetMapping("/add") public String addContact()
    • addContact

      @PostMapping("/add") public String addContact(String friend, Principal principal, org.springframework.web.servlet.mvc.support.RedirectAttributes attrs, String nickname, @RequestParam(required=false) Long friendId)
    • deleteContact

      @GetMapping("/delete") public String deleteContact(@RequestParam("id") Long contactId)
    • editContact

      @GetMapping("/edit") public String editContact(@RequestParam("id") Long contactId, org.springframework.ui.Model model)