您的位置:首页 > 理论基础 > 计算机网络

ssh报 HTTP Status 500 - Unable to instantiate Action, com.web.action.UserAction, defined for 'login'

2013-12-26 14:01 405 查看
S2SH项目报错:

          HTTP Status 500 - Unable to instantiate Action, com.web.action.UserAction, defined for 'login' in namespace '/user'Error creating bean with name 'com.web.action.UserAction': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type [com.service.UserService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, mappedName=, description=, name=,
type=class java.lang.Object, authenticationType=CONTAINER, lookup=)}

        

         这是因为依赖注入失败了,检查每个类的依赖注入,如果的注解的话,每个实现类上要注入@Repository("userService")这里的名字要和调用它的类中实例名一样.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐