0

Does it matter in which order the Spring resolves annotated beans defined in a Spring definition file as follows :

<context:annotation-config />

<context:component-scan base-package="com.for.jms"/>
<context:component-scan base-package="com.for.lookup"/>
<context:component-scan base-package="com.for.persistence"/>
luksmir
  • 3,104
  • 5
  • 22
  • 38

1 Answers1

1

It shouldn't matter. They will all be beans and the bean creation cycle should sort out the needed creation order.

Andreas Wederbrand
  • 38,065
  • 11
  • 68
  • 78