🌳 에러 코드
Live 상세페이지 글 삭제 구현 중, 글 삭제가 안되는 현상. userId를 디버깅으로 확인 후, 9이어야 하지만 4인 현상.

🌳 해결 방법
🌾 원인 : RestController 메소드 파라미터에서 userId를 보내야 하는데 liveId를 보낸 원인.
🌾 해결 방법 : 메소드 파라미터를 자세히 확인 후, 해당 메소드에 맞게 파라미터 보내기. (liveId -> userId)
Before

After
- RestController

- break point

'코딩 에러 및 질문' 카테고리의 다른 글
| nested exception is org.hibernate.exception.SQLGrammarException (0) | 2023.06.03 |
|---|---|
| nested exception is org.apache.ibatis.executor.ExecutorException (0) | 2023.05.31 |
| 좋아요 빈하트에서 채운 하트로 바뀌지 않는 현상. (0) | 2023.05.31 |
| Exiting from "ERROR" dispatch, status 404 (0) | 2023.05.30 |
| Cause: java.sql.SQLException (1) | 2023.05.29 |