-
카테고리
-
세부 분야
백엔드
-
해결 여부
해결됨
@PathVariable 바인딩 변경 후 오류 문의
20.07.20 08:53 작성 조회수 730
0
70. 모임참가 신청 수락 취소 및 출석체크 강의 중 문의사항입니다.
강의 중간쯤 나오는 내용대로, 이렇게 수정한 후에 실행하면 해당 컨트롤러 호출할때 오류가 발생합니다.
@PathVariable Long id
@PathVariable("id") Event event
EventController 클래스 전체에 적용했는데 적용한 모든곳에서 발생하네요.. 어떤 실수를 한 걸까요?? ㅠㅠ
-------------------------------------------------------
There was an unexpected error (type=Internal Server Error, status=500).
Failed to convert value of type 'java.lang.String' to required type 'com.studyolle.domain.Event'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'com.studyolle.domain.Event': no matching editors or conversion strategy found
org.springframework.web.method.annotation.MethodArgumentConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type 'com.studyolle.domain.Event'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type 'com.studyolle.domain.Event': no matching editors or conversion strategy found
...
답변을 작성해보세요.
0
0
0
0
답변 4