error

이수형·2022년 8월 15일
0

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.util.ArrayList<?>] to type [com.sun.tools.javac.util.List<?>] for value '[]'; nested exception is java.lang.IllegalArgumentException: Could not instantiate Collection type: com.sun.tools.javac.util.List] with root cause

Failed to convert from type [java.util.ArrayList<?>] to type [com.sun.tools.javac.util.List<?>]
이 부분을 유심히 관찰
type mismatch오류는 클래스 타입이 맞지 않아서 나는 오류

List findAllByOrderByModifiedAtDesc()
여기서 List를
import com.sun.tools.javac.util.List;
잘못 임포트 해왔다 ㅠㅠ 아오
import java.util.List;
이렇게 바꿔주는 바로 해결완료

profile
후회없는 오늘이, 후회없는 내일

0개의 댓글

관련 채용 정보