Hello everyone,
I am new in Axon. In my project using M5 I have the following code:
private Repository axonAccountRepository;
@Autowired
public AccountCommandHandlers(Repository axonAccountRepository) {
this.axonAccountRepository = axonAccountRepository;
}
axonAccountRepository.newInstance(() -> new Account(command.getAccountId(), etc, etc)
I am getting the following error:
Description:
Parameter 0 of constructor in com.norgay.accountservice.commandHandlers.AccountCommandHandlers required a bean of type ‘org.axonframework.commandhandling.model.Repository’ that could not be found.
Action:
Consider defining a bean of type ‘org.axonframework.commandhandling.model.Repository’ in your configuration.
What am I missing?