org.springframework.beans.factory.BeanCreationException
Posted on 2010-07-14 13:53 记录 阅读(2612) 评论(0) 编辑 收藏 举报错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name '/company/list': Injection of resource fields failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.hqhop.hqhopsvc.tech.service.client.CompanyService] is defined: Unsatisfied dependency of type [interface com.hqhop.hqhopsvc.tech.service.client.CompanyService]: expected at least 1 matching bean
解决:
<context:component-scan base-package="com.hqhop.hqhopsvc.tech.bean" /> 没有找到实体bean,包导入问题。