Maven项目报错

2019-04-14 20:50:01

好像是一个自动注入错误,不知道怎么改,刚学不是很懂,谁能远程协助帮我看一下?

  1. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.taotao.service.TestService com.taotao.controller.TestController.testService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'testService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.taotao.service.TestService. No provider available for the service com.taotao.service.TestService from the url zookeeper://192.168.37.128:2181/com.alibaba.dubbo.registry.RegistryService?application=taotao-manager-web&dubbo=2.5.3&interface=com.taotao.service.TestService&methods=queryNow&pid=17568&revision=0.0.1-SNAPSHOT&side=consumer&timestamp=1555245064371 to the consumer 172.17.65.135 use dubbo version 2.5.3
  2. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)
  3. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
  4. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
  5. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
  6. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  7. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  8. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  9. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  10. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
  11. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
  12. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
  13. at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
  14. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
  15. at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
  16. at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
  17. at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
  18. at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
  19. at javax.servlet.GenericServlet.init(GenericServlet.java:160)
  20. at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
  21. at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
  22. at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
  23. at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
  24. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
  25. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  26. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
  27. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
  28. at java.util.concurrent.FutureTask.run(FutureTask.java:262)
  29. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  30. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  31. at java.lang.Thread.run(Thread.java:744)

0
0
0

添加评论

正在回复:
取消
2
0
0
0