Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- npm에러
- app:compiledebugkotlin
- 타입스크립트
- Next.js
- async
- forwardref type
- generic
- javascript
- 상속
- map
- array
- err_connection_refused
- 이진탐색
- 슬라이딩윈도우
- Spring
- reactnative
- extends
- app.post
- 스크롤이벤트
- 안드로이드빌드에러
- TS
- mainapplication.kt
- set
- interface
- 배열중복요소제거
- reactnative error
- Filter
- 리액트네이티브아이콘
- react
- materialicons
Archives
- Today
- Total
목록ResponseEntity (1)
rhanziy
ResponseEntity객체와 @ResponseBody
@ResponseBody @ResponseBody 는 핸들러 메소드에 붙일 수 있는 어노테이션으로 컨트롤러가 데이터를 반환할 때 HttpMessageConverter 를 사용해서 자바 객체를 응답 본문(body) 메시지를 만들어 반환할 수 있게 도와준다. @RestController를 사용하면 자동으로 모든 핸들러 메소드에 @ResponseBody가 적용된다.. @Controller public class AccountController { @GetMapping("/accounts/{id}") @ResponseBody public Account handle(@PathVariable long id) { // ... } } @RestController public class AccountController ..
Java
2023. 6. 1. 10:51