I'm using a libreary that contains a @Configuration class which's setting this bean:
@Configuration
public abstract class BaseConfig {
@Bean
public ISchedulerService schedulerService() {
return new HapiSchedulerServiceImpl().setDefaultGroup(HAPI_DEFAULT_SCHEDULER_GROUP);
}
// other beans
}
I need to replace the @Bean definition by my own.
Is there anyway to disable this concreate @Bean definition?
I know, I'm able to disable a @Configuration class using for example:
@SpringBootApplication(exclude = {BaseConfig.class})
However, it's goinf to disable all other @Bean definitions.
Any idea?