🌳 에러 코드
2023-05-30 23:42:09,621 DEBUG [org.springframework.web.servlet.DispatcherServlet] GET "/liveLike/4", parameters={}
2023-05-30 23:42:09,625 WARN [org.springframework.web.servlet.PageNotFound] No mapping for GET /liveLike/4
2023-05-30 23:42:09,625 DEBUG [org.springframework.web.servlet.DispatcherServlet] Completed 404 NOT_FOUND
2023-05-30 23:42:09,626 DEBUG [org.springframework.web.servlet.DispatcherServlet] "ERROR" dispatch for GET "/error", parameters={}
2023-05-30 23:42:09,628 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2023-05-30 23:42:09,640 DEBUG [org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor] Using 'application/json', given [*/*] and supported [application/json, application/*+json, application/json, application/*+json]
2023-05-30 23:42:09,641 DEBUG [org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor] Writing [{timestamp=Tue May 30 23:42:09 KST 2023, status=404, error=Not Found, message=No message available, (truncated)...]
2023-05-30 23:42:09,665 DEBUG [org.springframework.web.servlet.DispatcherServlet] Exiting from "ERROR" dispatch, status 404
🌳 해결 방법
🌾 원인 : request에서 보낸 url 주소와 @RequestMapping주소가 불일치로 인한 오류.
🌾 해결 방법 : JSP - request에서 보낸 url 주소와 @RequestMapping주소가 일치시키기. (/liveLike/)
Before
- RestContorller
-JSP
After
- RestContorller
'코딩 에러 및 질문' 카테고리의 다른 글
글 삭제가 안 되는 현상. (0) | 2023.05.31 |
---|---|
좋아요 빈하트에서 채운 하트로 바뀌지 않는 현상. (0) | 2023.05.31 |
Cause: java.sql.SQLException (0) | 2023.05.29 |
org.apache.ibatis.binding.BindingException (0) | 2023.05.27 |
해당 사용자 글이 모두 수정되는 현상 (0) | 2023.05.27 |