//开始扫描com.good.model下的实体
SqlSessionFactoryBean- Scanned package: 'com.good.model' for aliases
//解析配置文件mybatis-configuration.xml
SqlSessionFactoryBean - Parsed configurationfile: 'class path resource [mybatis-configuration.xml]'
//解析mapper文件
SqlSessionFactoryBean- Parsed mapper file: 'URL[jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/goodkj-integration-service-1.0.0.jar!/com/good/model/mappers/ActivityMapper.xml]'
//此处省略解析其他mapper过程。。。
SqlSessionFactoryBean- Parsed mapper file: 'URL[jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/goodkj-integration-service-1.0.0.jar!/com/good/model/mappers/ActivityTypeMapper.xml]'
//解析完ActivityTypeMapper.xml时开始报错,实际上是解析到MallOrderMapper.xml时创建对象时开始报错
DefaultListableBeanFactory- Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Errorcreating bean with name 'userDao': Unsatisfied dependency expressed throughmethod 'setSqlSessionFactory' parameter 0: Error creating bean with name'sqlSessionFactory' defined in URL [jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/good-server-core-1.0.0.jar!/spring/context-global.xml]:Invocation of init method failed;
nested exception is org.springframework.core.NestedIOException: Failedto parse mapping resource: 'URL[jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/goodkj-integration-service-1.0.0.jar!/com/good/model/mappers/MallOrderMapper.xml]';
nested exception is java.lang.RuntimeException: Errorparsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Errorresolving class . Cause: org.apache.ibatis.type.TypeException: Couldnot resolve type alias 'com.good.model.Order'. Cause: java.lang.ClassNotFoundException: Cannotfind class: com.good.model.Order; nested exception is org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'sqlSessionFactory' defined in URL[jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/good-server-core-1.0.0.jar!/spring/context-global.xml]:Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failedto parse mapping resource: 'URL[jar:file:/E:/java/eclipse/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/goodkj-ecoupon-manage/WEB-INF/lib/goodkj-integration-service-1.0.0.jar!/com/good/model/mappers/MallOrderMapper.xml]';
nested exception is java.lang.RuntimeException: Errorparsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Errorresolving class . Cause: org.apache.ibatis.type.TypeException: Couldnot resolve type alias 'com.good.model.Order'. Cause: java.lang.ClassNotFoundException: Cannotfind class: com.good.model.Order
DefaultListableBeanFactory - Creating sharedinstance of singleton bean 'withdrawCashRecordsDao'
DefaultListableBeanFactory - Creating instanceof bean 'withdrawCashRecordsDao'
DefaultListableBeanFactory - Eagerly cachingbean 'withdrawCashRecordsDao' to allow for resolving potential circularreferences
InjectionMetadata - Processing injectedelement of bean 'withdrawCashRecordsDao': AutowiredMethodElement for publicfinal void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate)
InjectionMetadata - Processing injectedelement of bean 'withdrawCashRecordsDao': AutowiredMethodElement for publicfinal void org.mybatis.spring.support.SqlSessionDaoSupport.setSqlSessionFactory(org.apache.ibatis.session.SqlSessionFactory)
DefaultListableBeanFactory - Creating sharedinstance of singleton bean 'userDao'
DefaultListableBeanFactory - Creating instanceof bean 'userDao'
实际上上面的那段话就是讲MallOrderMapper.xml中有个com.good.model.Order实体被用到,但是又不存在这个实体。