按照网站上的资料一步一步敲的代码配置的文件,出现了No bean named 'dynaView' is defined这个错误,请问哪里出错了

No bean named 'dynaView' is defined

at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:549)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1096)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:278)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1117)
at com.bstek.dorado.core.bean.SpringBeanFactorySupport.getBean(SpringBeanFactorySupport.java:34)
at com.bstek.dorado.core.bean.BeanFactoryUtils.getBean(BeanFactoryUtils.java:117)
at com.bstek.dorado.view.config.definition.ViewDefinition.invokePrivateListener(ViewDefinition.java:87)
at com.bstek.dorado.data.config.definition.ListenableObjectDefinition.invokePrivateListeners(ListenableObjectDefinition.java:201)
at com.bstek.dorado.data.config.definition.ListenableObjectDefinition.invokeOnInitListener(ListenableObjectDefinition.java:175)
at com.bstek.dorado.data.config.definition.ListenableObjectDefinition.initObject(ListenableObjectDefinition.java:64)
at com.bstek.dorado.config.definition.ObjectDefinition.doCreate(ObjectDefinition.java:319)
at com.bstek.dorado.view.config.definition.ComponentDefinition.doCreate(ComponentDefinition.java:169)
at com.bstek.dorado.config.definition.Definition.create(Definition.java:336)
at com.bstek.dorado.view.config.definition.ViewConfigDefinition.doInitObject(ViewConfigDefinition.java:374)
at com.bstek.dorado.data.config.definition.ListenableObjectDefinition.initObject(ListenableObjectDefinition.java:63)
at com.bstek.dorado.config.definition.ObjectDefinition.doCreate(ObjectDefinition.java:319)
at com.bstek.dorado.view.config.definition.ViewConfigDefinition.doCreate(ViewConfigDefinition.java:255)
at com.bstek.dorado.config.definition.Definition.create(Definition.java:336)
at com.bstek.dorado.view.manager.ViewConfigManagerSupport.getViewConfig(ViewConfigManagerSupport.java:94)
at com.bstek.dorado.view.resolver.HtmlViewResolver.execute(HtmlViewResolver.java:198)
at com.bstek.dorado.web.resolver.AbstractTextualResolver.doHandleRequest(AbstractTextualResolver.java:128)
at com.bstek.dorado.web.resolver.WebContextSupportedController.handleRequestInternal(WebContextSupportedController.java:70)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:925)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:856)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:915)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:811)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:796)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at com.bstek.dorado.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
 
 
已邀请:

qq313687396

赞同来自:

1.请检查 @Component 的值 是否存在字母大小写或单词拼写的错误 
2.请检查 dorado-home 文件下 app-context 中 <context:component-scan> 中 base-package 的扫描路径是否有问题。

要回复问题请先登录注册