If I use separated class to configure Axon with Spring Boot in the same package of SpringBootApp:
`
@EnableAxon
@Configuration
public class AxonConfiguration {
@Primary
@Bean(destroyMethod = “shutdown”)
public CommandBus commandBus() {
return new AsynchronousCommandBus();
}
@Bean
public CommandBus simpleCommandBus() {
return new SimpleCommandBus();
}
@Bean
public EventStorageEngine eventStorageEngine() {
return new InMemoryEventStorageEngine();
}
}
`
The configuration won’t read
if instead I renami it as XAxonConfiguration it works.
it seems as Spring Boot call the alfabetically and won’t read config classes before the App Class.