개인프로젝트/mix

Provided id of the wrong type for class com.exam.mix.entity.Allcore. Expected: class java.lang.Integer, got class java.lang.String 오류

슬픈강낭콩 2023. 1. 19. 23:46

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Provided id of the wrong type for class com.exam.mix.entity.Allcore. Expected: class java.lang.Integer, got class java.lang.String; nested exception is java.lang.IllegalArgumentException: Provided id of the wrong type for class com.exam.mix.entity.Allcore. Expected: class java.lang.Integer, got class java.lang.String] with root cause

 

오류가 발생했다.

 

 

Provided id of the wrong type for class com.exam.mix.entity.Allcore. Expected: class java.lang.Integer, got class java.lang.String

 

com.exam.mix.entity 클래스에 잘못된 형식의 ID를 제공했습니다.올코어. 클래스 java.lang이 필요합니다.정수, java.lang 클래스를 받았습니다.끈

라고한다.

 

 

findyid가 안된다. 반환값과 요청보내는걸 찾아봐야겠다.

 

오늘은 여기까지 한다 내일 findbyid를 찾아봐야겠다.