java/spring annotation3 @RequestParam, @RequestBody 2022. 11. 5. @RestController A convenience annotation that is itself annotated with @Controller and @ResponseBody. Types that carry this annotation are treated as controllers where @RequestMapping methods assume @ResponseBody semantics by default. @Controller 및 @ResponseBody로 자체 주석이 달린 편리한 주석. 이 주석을 포함하는 유형은 @RequestMapping 메서드가 기본적으로 @ResponseBody 의미 체계를 띠고 있는 컨트롤러로 처리됩니다. @RestController를 입은 컨트롤러는 요청 매핑 애노테이션을 붙인 메서드의 리턴으.. 2022. 10. 6. @GetMapping Annotation for mapping HTTP GET requests onto specific handler methods. Specifically, @GetMapping is a composed annotation that acts as a shortcut for @RequestMapping(method = RequestMethod.GET). HTTP GET 요청을 특정 처리기 메서드에 매핑하기 위한 주석입니다. 특히 @GetMapping은 @RequestMapping(method = RequestMethod.GET)의 바로 가기 역할을 하는 합성 주석입니다. 2022. 10. 6. 이전 1 다음