Spring
ERROR
원인 : Entity에 지정한 변수가 Repository에 만든 함수의 이름과 달랐다
해결 - Entity 변수 이름 수정
원인 : controller에 mapping 주소와 url 주소가 달랐음,. (4시간 동안 찾았는데..휴)
해결 : 주소 수정..
해결 : return타입을 ResponseEntity로 변경
HttpServletRequest,HttpServletResponse
https://ik0501.tistory.com/entry/Spring-HttpServletRequest
Spring) HttpServletRequest, HttpServletResponse
WAS(웹 어플리케이션 서버)가 웹 브라우저로부터 servlet 요청을 받음 요청을 받을 때 전달 받은 정보를 HttpServletRequest 객체를 생성하여 저장 웹 브라우저에게 응답을 돌려줄 HttpServletResponse 객체 생
ik0501.tistory.com
Responsebody, ResponseEntity
https://ik0501.tistory.com/entry/Spring-ResponseEntity
Spring) ResponseBody , ResponseEntity
ResponseBody ResponseBody는 HTTP 규격에 맞는 응답을 만들어주기 위한 Annotation HTTP요청을 객체로 변환하거나, 객체를 응답으로 변환하는 HttpMessageConverter사용 HttpMessageConverter는 해당 Annotation이 붙은 대
ik0501.tistory.com
새로 알게된 내용
ResponseEntity 이란 ? , 사용법
Spring에서 http와 데이터를 주고받는 방법
내일 공부
java
enum, builder, innerclass, 다형성!
시간이 오래걸린 오류였는데 알고보니 굉장히 사소한 부분에서 오류가 난 것이라 허탈하고 화나고 화나고 화났지만
다음에 같은 실수는 하지 않도록 주의해야겠다.

'TIL(Today Ingwang Learned)' 카테고리의 다른 글
TIL)2022-12-06(Spring, 객체 지향 스터디) (0) | 2022.12.07 |
---|---|
TIL) 2022-12-05 (Spring) (0) | 2022.12.06 |
TIL) 2022-12-02(인증 방식 (JWT)) (0) | 2022.12.02 |
TIL)2022-12-01(spring,test) (0) | 2022.12.02 |
TIL) 2022-11-30 (java,spring) (0) | 2022.12.01 |