开发者社区> 问答> 正文

启动项目时出现:org.springframework.beans.factor?报错

以下是报错的详细信息,请问这是什么原因要怎么决定呀

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeOrderInfoServiceImpl' defined in file [D:\uis\uis-backstage-services\target\classes\cn\sumpay\backstage\service\impl\FeeOrderInfoServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
Caused by: java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.sortAdvisors(AspectJAwareAdvisorAutoProxyCreator.java:74)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:90)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
... 21 more
Caused by: java.lang.ClassNotFoundException: org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
at runjettyrun.ProjectClassLoader.loadClass(ProjectClassLoader.java:91)
... 29 more
2015-11-02 10:00:24.126:WARN::Failed startup of context org.mortbay.jetty.webapp.WebAppContext@d2b64e{/uis-backstage-manage,D:\uis\uis-backstage-manage\src\main\webapp}
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeOrderInfoServiceImpl' defined in file [D:\uis\uis-backstage-services\target\classes\cn\sumpay\backstage\service\impl\FeeOrderInfoServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)
2015-11-02 10:00:24.126:WARN::Nested in org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeOrderInfoServiceImpl' defined in file [D:\uis\uis-backstage-services\target\classes\cn\sumpay\backstage\service\impl\FeeOrderInfoServiceImpl.class]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/aspectj/autoproxy/AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder:
java.lang.ClassNotFoundException: org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder
at runjettyrun.ProjectClassLoader.loadClass(ProjectClassLoader.java:91)
at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.sortAdvisors(AspectJAwareAdvisorAutoProxyCreator.java:74)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:90)
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:97)

展开
收起
爱吃鱼的程序员 2020-06-12 10:24:35 803 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    找不到类文件,看看你的配置文件里路径写对没,如果是对的看看对应路径下有没有这个文件路径是对的,文件也存在呀<spanstyle="font-family:'MicrosoftYaHei',Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">feeOrderInfoServiceImpl这个bean没有实例到spring容器中,查看spring配置,有没有扫到这个bean或配置这个bean回复<aclass="referer"target="_blank">@wow_筱陌:回复<aclass="referer"target="_blank">@wow_筱陌:我是aspectjweaver.jar和aspectjrtweaver.jar这两个jar包没有加载回复<aclass='referer'target='_blank'>@筱潇:有个jar包没加载进来,又不说是哪个jar包,哎回复<aclass='referer'target='_blank'>@筱潇:楼主,这个问题能帮忙解决一下么谢谢呀,找到原因了,有个jar包加载不进来我也遇到了,结果发现缺少了aspectjweaver的包

    java.lang.ClassNotFoundException:org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator$PartiallyComparableAdvisorHolder------------------------------------------

    少包了

    我的项目也包这种错,我也导了aspectjweaverjar包啊

     

    在struts2和spring进行整合时,在controle层声明业务类对象时,需要声明接口,而不是实现类。(此问题也得以解决)

    23423423

    严重:StandardWrapper.Throwable
    org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'itemController':Injectionofresourcedependenciesfailed;nestedexceptionisorg.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:311)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
       atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
       atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
       atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
       atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
       atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
       atorg.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
       atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
       atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
       atorg.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
       atorg.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
       atorg.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
       atjavax.servlet.GenericServlet.init(GenericServlet.java:160)
       atorg.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
       atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
       atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
       atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
       atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
       atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
       atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
       atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
       atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       atjava.lang.Thread.run(Thread.java:745)
    Causedby:org.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:508)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
       atorg.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
       atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
       ...29more

    六月04,20173:23:05下午org.apache.catalina.core.StandardContextloadOnStartup
    严重:Servlet threwload()exception
    org.springframework.beans.factory.NoSuchBeanDefinitionException:Noqualifyingbeanoftype[com.taotao.service.ItemService]foundfordependency:expectedatleast1beanwhichqualifiesasautowirecandidateforthisdependency.Dependencyannotations:{@javax.annotation.Resource(shareable=true,mappedName=,description=,name=,type=classjava.lang.Object,lookup=,authenticationType=CONTAINER)}
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:1373)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1119)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1014)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:508)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:486)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:615)
       atorg.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:169)
       atorg.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
       atorg.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:308)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
       atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
       atorg.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
       atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
       atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
       atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
       atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
       atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
       atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
       atorg.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:668)
       atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:634)
       atorg.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:682)
       atorg.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:553)
       atorg.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:494)
       atorg.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
       atjavax.servlet.GenericServlet.init(GenericServlet.java:160)
       atorg.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1280)
       atorg.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1193)
       atorg.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1088)
       atorg.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5176)
       atorg.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5460)
       atorg.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
       atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
       atorg.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
       atjava.util.concurrent.FutureTask.run(FutureTask.java:262)
       atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
       atjava.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
       atjava.lang.Thread.run(Thread.java:745)

    六月04,20173:23:05下午org.apache.coyote.AbstractProtocolstart
    信息:StartingProtocolHandler["http-bio-8081"]

    我也是这个错啊,求解决方法

    保证路径正确 

       <!--配置包扫描器,扫描所有带@Service注解的类-->
       <context:component-scanbase-package="com.li..action,com.li..service"></context:component-scan>

    类中使用确定使用了 <aclass="referer"target="_blank">@Controller  <aclass="referer"target="_blank">@Service等标签, 我也发生了这个错误,因为我把包路径写错了,service单词拼写为serice 

    org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'sqlSessionFactory'definedinfile[D:\workspaces-itcast\template\e3-manager\e3-manager-service\target\classes\spring\applicationContext-dao.xml]:Initializationofbeanfailed;nestedexceptionisjava.lang.reflect.MalformedParameterizedTypeException  

    这是怎么回事

    2020-06-12 10:24:51
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载