🌳 에러 코드
2023-05-09 20:42:46,352 WARN [org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required request parameter 'languageGoals' for method parameter type String is not present]
2023-05-09 20:42:46,353 DEBUG [org.springframework.web.servlet.DispatcherServlet] Completed 400 BAD_REQUEST
2023-05-09 20:42:46,356 DEBUG [org.springframework.web.servlet.DispatcherServlet] "ERROR" dispatch for PUT "/error", parameters={multipart}
2023-05-09 20:42:46,357 DEBUG [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] Mapped to org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)
2023-05-09 20:42:46,361 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-09 20:42:46,361 DEBUG [org.springframework.web.servlet.mvc.method.annotation.HttpEntityMethodProcessor] Writing [{timestamp=Tue May 09 20:42:46 KST 2023, status=400, error=Bad Request, trace=org.springframework.we (truncated)...]
2023-05-09 20:42:46,365 DEBUG [org.springframework.web.servlet.DispatcherServlet] Exiting from "ERROR" dispatch, status 400
🌳 해결 방법
🌾 원인 :400 에러 - 잘못된 요청으로 문법상 오류. / 필수 파라미터 id인 (languageGoals)를 해야하는데, 다른 id를 썼다.
🌾 해결 방법 : 오류 메시지에서 힌트를 얻어 파라미터 유심히 살펴 본 결과, 필수 파라미터인 languageGoals 아이디로 변경.
<전>
<후>
'코딩 에러 및 질문' 카테고리의 다른 글
NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because "userId" is null (0) | 2023.05.11 |
---|---|
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: (0) | 2023.05.11 |
에러 정리 모음 (0) | 2023.05.09 |
### Cause: java.sql.SQLException: Incorrect integer value (0) | 2023.05.07 |
org.apache.ibatis.binding.BindingException: Parameter 'ImagePath' not found (0) | 2023.05.07 |