文章标题
来源:互联网 发布:快递收发软件 编辑:程序博客网 时间:2024/06/05 11:06
运行tomact时报的异常.作为一个新人,我想大家可能也遇到过这样的问题,其实是大家不仔细的原因.我这个是service 没有加注解.大家可以借鉴.如果有类似的错误.可以看看自己的注解是不是都已经加全了.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘categoryManageCountroller’: Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.heyi.service.IUserService com.heyi.controller.CategoryManageCountroller.iUserService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.heyi.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:288)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1116)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory
at org.apache.catalina.core.ContainerBase
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
… 23 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.heyi.service.IUserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:986)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:856)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:768)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)
… 25 more
十一月 02, 2017 9:19:25 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
十一月 02, 2017 9:19:25 上午 org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/**] startup failed due to previous errors
十一月 02, 2017 9:19:25 上午 org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
十一月 02, 2017 9:19:25 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/**] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十一月 02, 2017 9:19:25 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
SEVERE: The web application [/**] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
十一月 02, 2017 9:19:25 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/**] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
十一月 02, 2017 9:19:25 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/**] appears to have started a thread named [shirocache] but has failed to stop it. This is very likely to create a memory leak.
十一月 02, 2017 9:19:25 上午 org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory****\apache-tomcat-7.0.52\webapps\ROOT
十一月 02, 2017 9:19:25 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“http-bio-8080”]
十一月 02, 2017 9:19:25 上午 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler [“ajp-bio-8009”]
十一月 02, 2017 9:19:25 上午 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6617 ms
十一月 02, 2017 9:19:26 上午 org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load net.sf.ehcache.util.ProductInfo. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1610)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1569)
at net.sf.ehcache.util.UpdateChecker.buildParamsString(UpdateChecker.java:125)
at net.sf.ehcache.util.UpdateChecker.buildUpdateCheckUrl(UpdateChecker.java:121)
at net.sf.ehcache.util.UpdateChecker.doCheck(UpdateChecker.java:69)
at net.sf.ehcache.util.UpdateChecker.checkForUpdate(UpdateChecker.java:60)
at net.sf.ehcache.util.UpdateChecker.run(UpdateChecker.java:51)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
- 文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题 文章标题 文章标题 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- 文章标题
- java电子商务源码 b2b2c o2o
- 学习笔记--单向链表
- HDU2896 病毒侵袭(AC自动机)
- Greendao 查询不到真实数据的解决方法 清除greendao缓存
- 创建虚拟环境
- 文章标题
- LINUX,WWW,CHMOD,CHOWN
- JAVA异常:Exception in thread "http-8080-2" java.lang.OutOfMemoryError: PermGen space
- 五年之后,你的企业是拥抱AI,还是已被淘汰
- Edge浏览器,找不到本地书签或收藏夹更新时丢失了,我该怎样找回?
- Oracle+Mybatis的foreach insert批量插入报错的解决办法
- EntityEscape
- 如何在 Git 提交前进行代码质量检测
- 文章标题 十九大小结