Closed kevinojt closed 7 years ago
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.
You are correct, thanks!
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.