Spring Framework 4.3 이후에 어노테이션이 추가됨
@RequestMapping(value=”/add”, method=RequestMethod.GET)
⇒ @GetMapping(”/add”)
@RequestMapping(value=”/add”, method=RequestMethod.POST)
⇒ @POSTMapping(”/add”)
'Framework > SPRING FRAMEWORK' 카테고리의 다른 글
사용자 입력 데이터 얻어오기(파라미터) - HttpServletRequest방식 & POST 한글처리 (0) | 2023.09.14 |
---|---|
View 처리 (0) | 2023.09.14 |
@RequestMapping 처리 - root 경로 (0) | 2023.09.14 |
GET/POST 요청에 대한 @RequestMapping 처리 - method방식 (0) | 2023.09.14 |
@RequestMapping - URL 패턴 이용 (0) | 2023.09.14 |