Home > front end >  SSM automatic injection failure
SSM automatic injection failure

Time:10-17

Program met SSM automatic injection failure problem, find the tutorials on the Internet is largely tried didn't work: 1. The annotation problem; 2. The problem of configuration file
Is the problem that the spring jar package? There are other reasons I don't understand? Are learning, master!!!!!
Newspaper IUserService injection failed error:
 org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [cn.edu.sdust.service.IUserService] found for the dependency: expected at further 1 bean which qualifies as autowire candidate for this dependency, the dependency annotations: {@ org. Springframework. Beans. Factory. The annotation, Autowired (required=true)} 
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. RaiseNoSuchBeanDefinitionException (DefaultListableBeanFactory. Java: 1373)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. DoResolveDependency (DefaultListableBeanFactory. Java: 1119)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. ResolveDependency (DefaultListableBeanFactory. Java: 1014)
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor $AutowiredFieldElement. Inject (AutowiredAnnotationBeanPostProcessor. Java: 545)
The at org. Springframework. Beans. Factory. The annotation. InjectionMetadata. Inject (InjectionMetadata. Java: 88)
The at org. Springframework. Beans. Factory. The annotation. AutowiredAnnotationBeanPostProcessor. PostProcessPropertyValues (AutowiredAnnotationBeanPostProcessor. Java: 331)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. PopulateBean (AbstractAutowireCapableBeanFactory. Java: 1214)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. DoCreateBean (AbstractAutowireCapableBeanFactory. Java: 543)
The at org. Springframework. Beans. Factory. Support. AbstractAutowireCapableBeanFactory. CreateBean (AbstractAutowireCapableBeanFactory. Java: 482)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory $1. GetObject (AbstractBeanFactory. Java: 306)
The at org. Springframework. Beans. Factory. Support. DefaultSingletonBeanRegistry. GetSingleton (DefaultSingletonBeanRegistry. Java: 230)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. DoGetBean (AbstractBeanFactory. Java: 302)
The at org. Springframework. Beans. Factory. Support. AbstractBeanFactory. GetBean (AbstractBeanFactory. Java: 197)
The at org. Springframework. Beans. Factory. Support. DefaultListableBeanFactory. PreInstantiateSingletons (DefaultListableBeanFactory. Java: 772)
The at org. Springframework. Context. Support. AbstractApplicationContext. FinishBeanFactoryInitialization (AbstractApplicationContext. Java: 839)
The at org. Springframework. Context. Support. AbstractApplicationContext. Refresh (AbstractApplicationContext. Java: 538)
The at org. Springframework. Web. Servlet. FrameworkServlet. ConfigureAndRefreshWebApplicationContext (FrameworkServlet. Java: 666)
The at org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 632)
The at org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 680)
The at org. Springframework. Web. Servlet. FrameworkServlet. InitWebApplicationContext (FrameworkServlet. Java: 551)
The at org. Springframework. Web. Servlet. FrameworkServlet. InitServletBean (FrameworkServlet. Java: 492)
The at org. Springframework. Web. Servlet. HttpServletBean. Init (HttpServletBean. Java: 136)
The at javax.mail. Servlet. GenericServlet. Init (GenericServlet. Java: 158)
The at org. Apache. Catalina. Core. StandardWrapper. InitServlet (StandardWrapper. Java: 1134)
The at org. Apache. Catalina. Core. StandardWrapper. LoadServlet (StandardWrapper. Java: 1089)
The at org. Apache. Catalina. Core. StandardWrapper. The allocate (StandardWrapper. Java: 761)
The at org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 135)
The at org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 96)
The at org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 541)
The at org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 139)
The at org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 92)
The at org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 690)
The at org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 74)
At org. Apache. Catalina. Connector. CoyoteAdapter. Service (343) CoyoteAdapter. Java:
At org. Apache. Coyote. Http11. Http11Processor. Service (373) Http11Processor. Java:
The at org. Apache. Coyote. AbstractProcessorLight. Process (AbstractProcessorLight. Java: 65)
The at org. Apache. Coyote. AbstractProtocol $ConnectionHandler. Process (AbstractProtocol. Java: 868)
At org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun NioEndpoint. Java: (1589)
The at org.apache.tomcat.util.net.SocketProcessorBase.run (SocketProcessorBase. Java: 49)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1149)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 624)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related