Hello,
I’m trying to configure parameter resolver in order to inject spring bean service in command handler as Allard mentioned here :
https://groups.google.com/g/axonframework/c/Yb1g3dJp4E0/m/fm1aW8mWDwAJ
You may have to register the ParameterResolver with the configurer as a component:
configurer.registerComponent(ParameterResolverFactory.class,
MultiParameterResolverFactory.ordered(ClasspathParameterResolverFactory.forClass(getClass()), new ConfigurationParameterResolverFactory(config),
/* add your own here */)
But I don’t understand how to do it with Spring boot , I have tried (already sent in picture)
But I get the method registerComponent(Class, Function<Configuration,? extends C>) in the type Configurer is not applicable for the arguments (Class, MultiParameterResolverFactory).
I will be very glad if someone can help me to resolve this issue.
Thanks