私が作業しているSpring起動アプリケーション(昨日)から、本当に奇妙なエラーが発生しました(1.5.2.RELEASE)。私はEclipseでプロジェクトを実行するときに以下の例外を取得し始めました。Eclipse Spring Boot - TransactionAutoConfigurationとNeo4jDataAutoConfigurationの間で自動設定サイクルが検出されました
コマンドラインから実行すると、すべて正常に機能しました(ただし、開発とデバッグ時にEclipseから実行する必要があります)。私は、Eclipseでそれらをクリーニングする、プロジェクトを再インポートし、deleting the .classpath fileを試してみましたが、エラーが春ブーツ1.5.8.RELEASEを使用するように私のメインのプロジェクトとライブラリをアップグレードした後、私はEclipseで私のアプリを実行することができ
2017-12-05 13:46:45.620 ERROR 11048 --- [ restartedMain] o.s.b.f.s.DefaultListableBeanFactory : Destroy method on bean with name 'org.springframework.boot.autoconfigure.internalCachingMetadataReaderFactory' threw an exception
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot[email protected]744ed1b7: startup date [Tue Dec 05 13:46:43 EET 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404) [spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
<STACK-TRACE>
2017-12-05 13:46:45.635 ERROR 11048 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.almetis.webraadmin.WebRaAdminApplication];
nested exception is java.lang.IllegalStateException: AutoConfigure cycle detected between org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration and org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration
at org.springframework.context.annotation.ConfigurationClassParser.processDeferredImportSelectors(ConfigurationClassParser.java:545) ~[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]
<STACK-TRACE>
Caused by: java.lang.IllegalStateException: AutoConfigure cycle detected between org.springframework.boot.autoconfigure.transaction.TransactionAutoConfiguration and org.springframework.boot.autoconfigure.data.neo4j.Neo4jDataAutoConfiguration
at org.springframework.util.Assert.state(Assert.java:70) ~[spring-core-4.3.7.RELEASE.jar:4.3.7.RELEASE]