Trouble Shootings (1) 썸네일형 리스트형 자바 Failed to instantiate [java.util.List]: Specified class is an interface 에러 자바 스프링기반으로 웹서비스를 개발하던 중, 다음과 같은 에러가 발생했다. @PostMapping("/mypath") public ResultView myPostMethod(List myList) { return new ResultView(myService.doSomething(myList)); } org.springframework.beans.BeanInstantiationException: Failed to instantiate [java.util.List]: Specified class is an interface 위에 보이는 /mypath API를 호출하면, List가 인터페이스 이기 때문에 이를 초기화 할수 없다는 에러가 발생한다. 에러 문구만 보고 List를 ArrayList로 변경해주면, 에.. 이전 1 다음