@org.springframework.beans.factory.annotation.Autowired(required=true)
2017-12-26 16:12
686 查看
写个小程遇到上面的问题,真的是要多加练习啊。这个的原因是在service的实现类中咩偶遇添加@service注解导致的,添加上就可以,如下@Service("partyService")
public class PartyServiceImpl implements PartyService {
@Resource
PartyMapper partyMapper;
public class PartyServiceImpl implements PartyService {
@Resource
PartyMapper partyMapper;
相关文章推荐
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- Spring异常: {@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)
- Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- springmcv 整合shiro报{@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)}
- bug解决_{@org.springframework.beans.factory.annotation.Autowired(required=true)}
- @org.springframework.beans.factory.annotation.Autowired(required=true)
- Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
- SSM整合单元测试出错@org.springframework.beans.factory.annotation.Autowired(required=true)}
- @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:
- 处理异常:org.springframework.beans.factory.BeanNotOfRequiredTypeException