Spring Conditional Configuration / Bean
참조
Conditional Beans with Spring Boot - reflectoring