Skip to content

Conversation

@smcvb
Copy link
Collaborator

@smcvb smcvb commented Nov 14, 2022

This pull request replaces @Autowired configuration samples for ConfigurerModule bean examples.
This is required as a follow up from the Spring version change accompanied with 4.6 of Framework.

These changes cause @Autowired methods using Axon Framework configuration beans to cause circular dependency issues or they're invoked out of order.
To resolve this, users can provide a ConfigurerModule bean instead, as Axon Framework will capture these and invoke them as part of initiating the lifecycle of the Axon Framework application.

Replace @Autowired configuration samples for ConfigurerModule, as the
Spring changes accompanied with 4.6 make it so that @Autowired methods
cause circular dependencies _or_ they're invoked completely out of order
 Users can battle this by using a ConfigurerModule bean instead.

#spring-config-samples
Copy link

@gklijs gklijs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@smcvb smcvb merged commit 493e579 into 4.6 Nov 14, 2022
@smcvb smcvb deleted the enhancement/spring-config-samples branch November 14, 2022 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants