Recently doing a Java mall project, the project using maven build, the project structure is
I put the manager - service project start, start using maven plug-in, and then put the taotao - web project start, just as I start the web project and submit them to a
SEVERE: StandardWrapper Throwable
Org. Springframework. Beans. Factory. BeanCreationException: Error creating bean with the name 'itemController: Injection of autowired dependencies failed; Nested exception is org. Springframework. Beans. Factory. BeanCreationException: Could not autowire field: private com. Taotao. Service. ItemService com. Taotao. Controller. ItemController. ItemService; Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. Taotao. Service. ItemService] 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. The annotation. AutowiredAnnotationBeanPostProcessor. PostProcessPropertyValues (AutowiredAnnotationBeanPostProcessor. Java: 334)
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: 668)
The at org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 634)
The at org. Springframework. Web. Servlet. FrameworkServlet. CreateWebApplicationContext (FrameworkServlet. Java: 682)
The at org. Springframework. Web. Servlet. FrameworkServlet. InitWebApplicationContext (FrameworkServlet. Java: 553)
The at org. Springframework. Web. Servlet. FrameworkServlet. InitServletBean (FrameworkServlet. Java: 494)
The at org. Springframework. Web. Servlet. HttpServletBean. Init (HttpServletBean. Java: 136)
The at javax.mail. Servlet. GenericServlet. Init (GenericServlet. Java: 160)
The at org. Apache. Catalina. Core. StandardWrapper. InitServlet (StandardWrapper. Java: 1280)
The at org. Apache. Catalina. Core. StandardWrapper. LoadServlet (StandardWrapper. Java: 1193)
At org. Apache. Catalina. Core. StandardWrapper. Load (1088) StandardWrapper. Java:
The at org. Apache. Catalina. Core. StandardContext. LoadOnStartup (StandardContext. Java: 5176)
The at org. Apache. Catalina. Core. StandardContext. StartInternal (StandardContext. Java: 5460)
The at org. Apache. Catalina. Util. LifecycleBase. Start (LifecycleBase. Java: 150)
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1559) ContainerBase. Java:
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1549) ContainerBase. Java:
The at Java. Util. Concurrent. FutureTask $Sync. InnerRun (FutureTask. Java: 334)
The at Java. Util. Concurrent. FutureTask. Run (FutureTask. Java: 166)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1145)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 615)
The at Java. Lang. Thread. The run (Thread. Java: 722)
Under Caused by: org. Springframework. Beans. Factory. BeanCreationException: Could not autowire field: private com. Taotao. Service. ItemService com. Taotao. Controller. ItemController. ItemService; Nested exception is org. Springframework. Beans. Factory. NoSuchBeanDefinitionException: No qualifying bean of type [com. Taotao. Service. ItemService] 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. The annotation. AutowiredAnnotationBeanPostProcessor $AutowiredFieldElement. Inject (AutowiredAnnotationBeanPostProcessor. Java: 573)
The at org. Springframework. Beans. Factory. The annotation. InjectionMetadata. Inject (InjectionMetadata. Java: 88)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull