https://mangkyu.tistory.com/49
[Spring] @Controller와 @RestController 차이
Spring에서 컨트롤러를 지정해주기 위한 어노테이션은 @Controller와 @RestController가 있습니다. 전통적인 Spring MVC의 컨트롤러인 @Controller와 Restuful 웹서비스의 컨트롤러인 @RestController의 주요한 차이점
mangkyu.tistory.com
https://dncjf64.tistory.com/288#google_vignette
@Controller와 @RestController의 차이점
1.개요 Spring MVC의 @RestController은 @Controller와 @ResponseBody의 조합입니다. Spring 프레임 워크에서 RESTful 웹 서비스를 보다 쉽게 개발할 수 있도록 Spring 4.0에서 추가되었습니다. 근본적인 차이점은 @Contr
dncjf64.tistory.com
'Spring > @annotation' 카테고리의 다른 글
@PathVariable (1) | 2024.01.11 |
---|---|
@Transactional (0) | 2024.01.10 |
@RequestMapping (0) | 2024.01.10 |
@Column(columnDefinition = ...) (0) | 2024.01.10 |
@ManyToOne, @OneToMany (0) | 2024.01.10 |