spring启动报错问题1

//开始扫描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实体被用到,但是又不存在这个实体。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值