欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

求大神解决一下

程序员文章站 2023-11-06 09:59:40
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframewor ......

严重: exception sending context initialized event to listener instance of class org.springframework.web.context.contextloaderlistener

org.springframework.beans.factory.beancreationexception: error creating bean with name 'dataserviceimpl': injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.beancreationexception: could not autowire field: private cn.smarthome.fivegroups.mapper.datamapper cn.smarthome.fivegroups.service.impl.dataserviceimpl.datamapper; nested exception is org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [cn.smarthome.fivegroups.mapper.datamapper] 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:334)
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.populatebean(abstractautowirecapablebeanfactory.java:1214)
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:543)
at org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482)
at org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306)
at org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)
at org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302)
at org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:197)
at org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:772)
at org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:839)
at org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:538)
at org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:446)
at org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:328)
at org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:107)
at org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4939)
at org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5434)
at org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)
at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559)
at org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549)
at java.util.concurrent.futuretask.run(futuretask.java:266)
at java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1149)
at java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:624)
at java.lang.thread.run(thread.java:748)
caused by: org.springframework.beans.factory.beancreationexception: could not autowire field: private cn.smarthome.fivegroups.mapper.datamapper cn.smarthome.fivegroups.service.impl.dataserviceimpl.datamapper; nested exception is org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [cn.smarthome.fivegroups.mapper.datamapper] 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$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:573)
at org.springframework.beans.factory.annotation.injectionmetadata.inject(injectionmetadata.java:88)
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor.postprocesspropertyvalues(autowiredannotationbeanpostprocessor.java:331)
... 22 more
caused by: org.springframework.beans.factory.nosuchbeandefinitionexception: no qualifying bean of type [cn.smarthome.fivegroups.mapper.datamapper] 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:1373)
at org.springframework.beans.factory.support.defaultlistablebeanfactory.doresolvedependency(defaultlistablebeanfactory.java:1119)
at org.springframework.beans.factory.support.defaultlistablebeanfactory.resolvedependency(defaultlistablebeanfactory.java:1014)
at org.springframework.beans.factory.annotation.autowiredannotationbeanpostprocessor$autowiredfieldelement.inject(autowiredannotationbeanpostprocessor.java:545)
... 24 more

四月 07, 2019 8:55:41 上午 org.apache.catalina.core.standardcontext startinternal
严重: error listenerstart
四月 07, 2019 8:55:41 上午 org.apache.catalina.core.standardcontext startinternal
严重: context [] startup failed due to previous errors
四月 07, 2019 8:55:41 上午 org.apache.catalina.core.applicationcontext log
信息: closing spring root webapplicationcontext
四月 07, 2019 8:55:41 上午 org.apache.catalina.loader.webappclassloader clearreferencesjdbc
严重: 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.
四月 07, 2019 8:55:41 上午 org.apache.catalina.loader.webappclassloader clearreferencesjdbc
严重: the web application [] registered the jdbc driver [com.mysql.fabric.jdbc.fabricmysqldriver] but failed to unregister it when the web application was stopped. to prevent a memory leak, the jdbc driver has been forcibly unregistered.
四月 07, 2019 8:55:41 上午 org.apache.catalina.loader.webappclassloader clearreferencesjdbc
严重: 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.
四月 07, 2019 8:55:41 上午 org.apache.catalina.loader.webappclassloader clearreferencesjdbc
严重: the web application [] registered the jdbc driver [com.alibaba.druid.mock.mockdriver] but failed to unregister it when the web application was stopped. to prevent a memory leak, the jdbc driver has been forcibly unregistered.
四月 07, 2019 8:55:41 上午 org.apache.catalina.loader.webappclassloader clearreferencesthreads
严重: 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.
四月 07, 2019 8:55:41 上午 org.apache.coyote.abstractprotocol start
信息: starting protocolhandler ["http-bio-9003"]