You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DependsOnDatabaseInitializationPostProcessor of DatabaseInitializationDependencyConfigurer declares dependencies between beans and is executed both during AOT processing and during start-up in the native image. On the one hand, this is surprising as analyzing bean dependencies is something the AOT processing should do instead of the native runtime, if I understand correctly. On the other hand, it easily leads to circular dependencies between initializers whose detectors have the same order. If detectors have the same order then the effective order of initializers is ill-defined and can differ between AOT processing and native image runtime.
The text was updated successfully, but these errors were encountered:
This issue is motivated by the following issue in Spring Cloud Task: spring-cloud/spring-cloud-task#880
The
DependsOnDatabaseInitializationPostProcessor
ofDatabaseInitializationDependencyConfigurer
declares dependencies between beans and is executed both during AOT processing and during start-up in the native image. On the one hand, this is surprising as analyzing bean dependencies is something the AOT processing should do instead of the native runtime, if I understand correctly. On the other hand, it easily leads to circular dependencies between initializers whose detectors have the same order. If detectors have the same order then the effective order of initializers is ill-defined and can differ between AOT processing and native image runtime.The text was updated successfully, but these errors were encountered: