DefaultListableBeanFactory - No bean named 'org.apache.struts2.dispatcher.ServletDispatcherResult' found in org.springframework.beans.factory.support.DefaultListableBeanFactory@1594ba3: defining beans [user,project,projectDAO,usersDAO,addProjectService,loginService,registerService,login,register,add Project,sessionFactory]; root of factory hierarchy
DefaultListableBeanFactory - 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 unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean; nested exception isorg.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [java.lang.String] is defined: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching bean CachedIntrospectionResults - Getting BeanInfo for class [org.apache.struts2.dispatcher.ServletDispat cherResult] CachedIntrospectionResults - Caching PropertyDescriptors for class [org.apache.struts2.dispatcher.Se rvletDispatcherResult]
------解决方案-------------------- 贴一下struts2和spring的配置文件,struts2的代码吧
------解决方案-------------------- mark,关注千元大奖花落谁家?
------解决方案-------------------- No bean named 'org.apache.struts2.dispatcher.ServletDispatcherResult'