Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring/spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [/x x xx/classes/mapper/StudentDao.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for org.ty.cloudCourse.dao.StudentDao.queryStudent
解決方法:苦尋一天未找到原因,於是一條方法一條方法刪,發現這個dao.xml中寫了兩個id爲queryStudent的<select>