1. 아래 annotation 의 용도는?
@ModelAttribute
: 커맨드 객체의 이름을 개발자가 임의로 변경 할 수 있는 기능이다,
@RequestMapping("/studentView")
// @ModelAttribute("studentInfo"): 기존 StudentInformation 객체 명을 studentInfo로 변경한다.
public String studentView (@ModelAttribute("studentInfo") StudentInformation studentInformaton) {
return "studentView";
}
'WebDev > 본과정' 카테고리의 다른 글
JQuery 슬라이더와 달력 구현하기 (0) | 2021.05.16 |
---|---|
Spring의 MVC 패턴 (0) | 2021.05.16 |
Spring의 컨트롤러 및 멤버객체, JS의 핸들러 모델 (0) | 2021.05.16 |
JS의 DOM 및 BOM 객체, Spring의 MVC 패턴개요 (0) | 2021.05.16 |
JS의 메소드와 Spring의 IOC 컨테이너 (0) | 2021.05.16 |
최근댓글