@SpringBootApplication contains these configurations.
1) @ Configuration
2) @ComponentScan
3) @EnableAutoConfiguration
@EnableAutoConfiguration is the cause of this error. This will try to automatically configure the application according to the dependencies in your pom.xml
As an example, when you have a spring -data-jpa dependency in pom, it will try to add the configuration to the application by looking at the application.properties file for the data source. Therefore, you need to add a data source to solve this problem.
mvn clean install -DskipTests helps you skip testing until you resolve the error.
Lahiru gamage
source share