{@org.springframework.beans.factory.annotation.Autowired(required=true)}
2015-03-04 15:55
603 查看
出现这个问题的时候 , 我试图调用spring注入一个service
但是 , 没有在该service中加@Service的标签.
自动注入的时候,找不到对应的bean,因对应要注入的实现类没有加注解,DAO层用 @Repository ,Service层用 @Service
@autowired private XxxService xxxService;
但是 , 没有在该service中加@Service的标签.
自动注入的时候,找不到对应的bean,因对应要注入的实现类没有加注解,DAO层用 @Repository ,Service层用 @Service
相关文章推荐
- Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)
- Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- springmcv 整合shiro报{@org.springframework.beans.factory.annotation.Autowired(required=true)}
- Spring异常: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- mapper注入失败问题解决 {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- SSM整合单元测试出错@org.springframework.beans.factory.annotation.Autowired(required=true)}
- bug解决_{@org.springframework.beans.factory.annotation.Autowired(required=true)}
- 报错:Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- 异常:org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor
- beans.factory.BeanCreationException beans.factory.annotation.Autowired(required=true)
- Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.Be
- beans.factory.BeanCreationException beans.factory.annotation.Autowired(required=true)
- 代理及注入之org.springframework.beans.factory.BeanNotOfRequiredTypeException
- Spring-org.springframework.beans.factory.BeanNotOfRequiredTypeException