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,重新下载