• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    해결됨

@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
...

답변 4

·

답변을 작성해보세요.

0

플레어님의 프로필

플레어

질문자

2020.07.20

감사합니다. ~

0

https://www.youtube.com/watch?v=-mFD1iX5MJo

그럴거 같았습니다. 이 영상 확인해 주세요.

0

플레어님의 프로필

플레어

질문자

2020.07.20

2.3.1인듯 합니다.

:: Spring Boot ::        (v2.3.1.RELEASE)

0

사용하고 있는 스프링 부트 버전이 무언지 알 수 있을까요?