org.springframework.beans.factory.BeanCreationException

本文记录了一次在Spring框架下遇到的依赖注入失败的问题及解决过程。主要表现为无法正确实例化特定的服务Bean,并最终定位到类路径缺失问题,通过清理并重建项目依赖解决了该问题。
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'orderInfoController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.vista.mall.detail.service.EmallOrderSpiService org.vista.mall.order.controller.OrderInfoController.spiService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emallOrderSpiServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: com.dzqd.spi.extention.factory.SpiExtensionFactory org.vista.mall.detail.service.impl.EmallOrderSpiServiceImpl.spiFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spiExtensionFactory' defined in file [C:\Myeclipse\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\VistaMall-payorders\WEB-INF\classes\spring-configuration\applicationContext-order.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dzqd.spi.extention.factory.SpiExtensionFactory]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apachetp/client/methods/HttpUriRequest 

根据题意大概的意思 就是注入失败,但是我项目中已经注入了这个,还是一直报错,这个问题整了我好久,

解决:删除仓库jar,重新下载

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值