you can use @ComponentScan to automatically pick up all Spring components, including @Configuration classes

You should only ever add one @SpringBootApplication or @EnableAutoConfiguration annotation. We generally recommend that you add one or the other to your primary @Configuration class only.