Wrong Beans init order
Closed this issue · 1 comments
kevinojt commented
Spring initializes Beans in declared order.
In DDDSampleApplicationContext.java
“graphTraversalService” should be initialized before "routingService" because "routingService" requires "graphTraversalService"
"handlingEventFactory" should be initialized before "handlingEventRepository" because "handlingEventRepository" requires "handlingEventFactory"
Or they will just get null pointers.
mackapappa commented
You are correct, thanks!