Your Application Context is unlikely to start due to a @ComponentScan of the default package| TTQ:01
#questionanswer #techqueries #stackoverflow #springboot #application #Thetesttribebyhps #TTQ #java #javaquestions
Error logs-
** WARNING ** : Your ApplicationContext is unlikely to start due to a @ComponentScan of the default package.
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/h0s04lt/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.5.12/spring-boot-autoconfigure-2.5.12.jar!/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration.class]; nested exception is java.lang.IllegalStateException: Could not evaluate condition on org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$EmbeddedDatabaseConfiguration due to org/springframework/dao/DataAccessException not found. Make sure your own configuration does not rely on that class. This can also happen if you are @ComponentScanning a springframework package (e.g. if you put a @ComponentScan in the default package by mistake)
![](https://i.ytimg.com/vi/j0WaN2GrzgU/maxresdefault.jpg)