Caused by: org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxx'. Cause: java.lang.ClassNotFoundException: Cannot find class: xxx
팀 프로젝트 중 각 기능을 merge하는 과정에서 다음과 같은 오류 발생. 오류상 type alias를 모두 확인해본 결과 문제가 없다. 이유: xxx 자바파일이 컴파일되어 클래스파일이 만들어지는데, 컴파일할때의 자바버전(jdk)이 현재 실행환경의 자바버전(jre)과 달라서 클래스파일을 인식하지 못함 해결: 1. xxx에 해당하는 자바 파일을 모두 삭제 2. xxx에 해당하는 alias와 mapper를 삭제 3. 1,2번을 원상복귀 Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [applicationContext-persistence.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/home/izeye/programs/apache-tomcat-7.0.47/webapps/ROOT/WEB-INF/classes/mybatis/mappers/xxx-dao.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving class. Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'xxx'. Cause: java.lang.ClassNotFoundException: Ca...