spring BeanCreationException

一般出现这样的错误,日志打印很长,稍微不注释加上失去耐心,就会查询问题很久,spring一般报错误都是由上到下的进行提示。比如a调用b b调用c,c调用d,d有问题,一般看到的日志时a-b-c-d这样大概的顺序描述。

例如

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.wt.pts.service.QryProductService': Cannot resolve reference to bean 'qryProductServiceImpl' while setting bean property 'ref'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'qryProductServiceImpl': Unsatisfied dependency expressed through field 'productQryManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'productQryManager': Unsatisfied dependency expressed through field 'qryPtsTradeManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'qryPtsTradeManager': Unsatisfied dependency expressed through field 'qryPtsBalanceService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'qryPtsBalanceService': Unsatisfied dependency expressed through field 'qryPtsBalanceManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'qryPtsBalanceManager': Unsatisfied dependency expressed through field 'contractManager'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'contractManager': Unsatisfied dependency expressed through field 'localOpenService'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.wt.pts.remote.LocalOpenService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

上面这么长一段描述的是Error creating bean with name 'com.wt.pts.service.QryProductService

然后 Cannot resolve reference to bean 'qryProductServiceImpl' while setting bean property 'ref';

再然后

Error creating bean with name 'qryProductServiceImpl': Unsatisfied dependency expressed through field 'productQryManager'; 

等等一直看到最后其实这这个错误

 No qualifying bean of type 'com.wt.pts.remote.LocalOpenService' available: expected at least 1 bean which qualifies as autowire candidate. 

 Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

LocalOpenService 不能注入

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值