I solved this problem by moving the class annotated @SpringBootApplication in the repository package.