ずに別のモジュールの上に私は次の春バージョン使用していません:SpringBoot BeanCurrentlyInCreationExceptionが、私のWebアプリケーションでSpringBoot
<org.springframework-version>3.2.9.RELEASE</org.springframework-version>
を、私は別のものを依存豆の多くは、フォームのサイクルを持っていますが、問題はありません私は使用できます
@Autowired
SampleBean bean
問題なく使用できます。私は別のモジュールから豆を注入しようとすると、
今、私は
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
の使用で、残りのサービスを作成しようとしています残念ながら、私は例外を取得:
それを解決する方法Unsatisfied dependency expressed through field 'beanDao'; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'beanDao': Bean with name 'beanDao' has been injected into other beans [beanA,beanB] in its raw version as part of a circular reference, but has eventually been wrapped
?なぜ私はSpringBootでこのエラーを取得していますが、SpringBootを使用しないWebアプリではありません。
循環参照を取り除いた可能性があります – Antoniossss
関連するすべてのコードを見ずに言うことは不可能です。おそらく、あなたは[最小、完全で、検証可能な例](/ help/mcve)を作成することができますか? –