Springboot conditionalonMissingBean
@Configuration
public class CustomConfiguration {
@Bean
@ConditionalOnMissingBean
//Auto-Configuration to Back Away When a Bean Exists
public CustomService service() { ... }
}
Cookies4Techies