HTTP Status 500 - Unable to instantiate Action

来源:互联网 发布:毛岸英如果不死知乎 编辑:程序博客网 时间:2024/05/22 15:28

HTTP Status 500 - Unable to instantiate Action, com.net.ghzx.user.UserInfoAction, defined for 'user_login' in namespace '/user'Error creating bean with name 'com.net.ghzx.user.UserInfoAction': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.net.ghzx.bcsb.ISupplementaryService com.net.ghzx.action.BaseAction.supplementaryService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [com.net.ghzx.bcsb.ISupplementaryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}



只是在SupplementaryService类中没有写@Service。跟

UserInfoAction没有关系,怎么报这么多错





1 0
原创粉丝点击