# A @SpringBootApplication class in the default package (no package statement) source compiled: import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class DefaultPackageApp { } --- what Spring Boot logged about the default package --- WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package. --- result --- context FAILED to start: BeanDefinitionStoreException / root cause ConflictingBeanDefinitionException: Annotation-specified bean name 'bookController' for bean class [com.ankurm.structure.bylayer.controller.BookController] conflicts with existing, non-compatible bean definition of same name and class [com.ankurm.structure.byfeature.book.BookController]