728x90 Debugging11 [SpringBoot] SpringBoot 에러 노트 SpringBoot 개발 중 발생한 에러를 정리하는 곳입니다. Mybatis Mapping 에러 에러 코드 - IndexOutOfBoundsException 발생 원인 - mybatis의 select 데이터랑 resultType 클래스의 field가 제대로 매핑되지 않음. 해결 방법 - select 데이터 이름과 dto 클래스 필드명을 일치시켜야 한다. 하나라도 맞지 않으면 안됨. Dto 캐스팅 에러 에러 코드 - nested exception is java.lang.ClassCastException: java.lang.String cannot be cast to kr.co.weeds.wbs.board.model.dto.PrivacyContentDto] with root cause 발생 원인 - Stri.. 2023. 8. 20. [springMVC] 에러 노트 SpringMVC 개발 중 발생한 에러를 정리하는 곳입니다. MyBatis 버전 에러 에러 코드 - Error creating bean with name 'sqlSessionFactory' defined in URL [file:src/main/webapp/WEB-INF/spring/root-context.xml]: Instantiation of bean failed; 발생 원인 - pom.xml에 등록된 mybatis와 mybatis-spring의 버전이 맞지 않음 해결 방법 - mvnrepository에서 mybatis-spring버전과 맞는 mybatis 의존성을 추가. mapper 경로 문제 에러 코드 - Error creating bean with name 'sqlSessionFactory' de.. 2023. 8. 19. 이전 1 2 다음 728x90