autowired循环调用

下面这段代码,表示那你的bean进行了循环调用。

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.meituan.ee.codex.service.repository.RepositoryService com.meituan.ee.codex.service.builder.Impl.BuildServiceImpl.repositoryService; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryService' defined in file [/Users/yanglongwen/coderep/ee-codex/target/classes/com/meituan/ee/codex/service/repository/Impl/RepositoryServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 8 of type [com.meituan.ee.codex.service.machine.MachineBindService]: : Error creating bean with name 'machineBindService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.meituan.ee.codex.service.publishment.CodexPublishmentService com.meituan.ee.codex.service.machine.Impl.MachineBindServiceImpl.codexPublishmentService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codexPublishmentService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.meituan.ee.codex.service.repository.RepositoryService com.meituan.ee.codex.service.publishment.impl.CodexPublishmentServiceImpl.repositoryService; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'repositoryService': Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'machineBindService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.meituan.ee.codex.service.publishment.CodexPublishmentService com.meituan.ee.codex.service.machine.Impl.MachineBindServiceImpl.codexPublishmentService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'codexPublishmentService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.meituan.ee.codex.service.repository.RepositoryService com.meituan.ee.codex.service.publishment.impl.CodexPublishmentServiceImpl.repositoryService; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'repositoryService': Requested bean is currently in creation: Is there an unresolvable circular reference?

posted @ 2018-07-31 11:04  傍晚的羔羊  阅读(611)  评论(0编辑  收藏  举报