论坛首页 Java企业应用论坛

初学Spring+Hibernate+Struts框架,遇到一个Debug错误感觉比较迷糊。

浏览 2616 次
该帖已经被评为隐藏帖
作者 正文
   发表时间:2010-03-15  
出错部分的调试信息如下:
DEBUG [http-8080-1] org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(507) | No bean named 'org.apache.struts2.dispatcher.ServletDispatcherResult' found in org.springframework.beans.factory.support.DefaultListableBeanFactory@e7f6eb: defining beans [dataSource,mySessionFactory,myTransactionManager,myBaseTransactionProxy,usersDAO,myLoginAction]; root of factory hierarchy
DEBUG [http-8080-1] org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(196) | Ignoring constructor [public org.apache.struts2.dispatcher.ServletDispatcherResult(java.lang.String)] of bean 'org.apache.struts2.dispatcher.ServletDispatcherResult': org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: : No matching bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}
不知道这样的错误是什么原因导致的,那个地方的配置没有搞对,还是什么原因,比较头大,呵呵
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics