본문 바로가기

TIL

슬기의 TIL - 2023.05.08

1. Swagger

CommentRequestDto는 @RequestBody로 받아오는데, @AuthenticationPrincipal로 UserDeatailsImpl도 함께 받아오고 있어서 Swagger Request body에 두 내용이 모두 들어오는 문제가 발생했다. content만 받아와야 기능이 제대로 동작한다.

 

 

2. 댓글 수정

3. MySQL

Swagger로 테스트 시, DB가 생성되지 않음

-> DB 연결 확인해보았는데, 제대로 연결 되어 있음

-> 혹시 몰라서 postman으로 실행해보았는데 테이블들이 생성됨!

-> Swagger port가 8080으로 되어있었다.

 

!!! Swagger 포트 바꾸는 법 찾아보기 !!!

 

4. S3 연동

https://jane514.tistory.com/10

https://kim-jong-hyun.tistory.com/131

https://kth990303.tistory.com/435

https://jojoldu.tistory.com/300