문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 | ||
wiki:spring:spring_note:controller_and_restcontroller_annotations [2022/12/13 10:08] emblim98 만듦 |
wiki:spring:spring_note:controller_and_restcontroller_annotations [2023/01/13 18:44] (현재) |
||
---|---|---|---|
줄 10: | 줄 10: | ||
===== @Controller And @RestController Annotations | ===== @Controller And @RestController Annotations | ||
- | 오랫동안 스프링 프레임워크의 일부분을 담당해온 @Controller를 전통적인 Spring 컨트롤러로 사용할 수 있습니다.\\ | + | 오랫동안 스프링 프레임워크(Spring 2.5버전에서 도입)의 일부분을 담당해온 @Controller를 전통적인 Spring 컨트롤러로 사용할 수 있습니다.\\ |
Spring 4.0은 RESTful 웹 서비스 생성을 단순화하기 위해 @RestController 어노테이션을 도입했습니다.\\ | Spring 4.0은 RESTful 웹 서비스 생성을 단순화하기 위해 @RestController 어노테이션을 도입했습니다.\\ | ||
@RestController 어노테이션은 @Controller와 @ResponseBody를 결합하는 편리한 어노테이션으로, | @RestController 어노테이션은 @Controller와 @ResponseBody를 결합하는 편리한 어노테이션으로, | ||
줄 77: | 줄 77: | ||
[[https:// | [[https:// | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
{{tag> 오션 | {{tag> 오션 |