Spring-boot CrudRepository autowiring error
First of all, you need to remove @Repository from your DAO interface. Spring Data JPA will build the implementation and deploy it in the Spring container without the @Repository. It is the @EnableJpaRepository that will give the instruction to String Data Jpa. Spring Boot autoconfiguration will declare the @EnableJpaRepository`for you.
Then, replace CrudRepository by JpaRepository.
Finally, make sure you have declared spring-boot-starter-data-jpa
as a maven dependency.
Regards, Daniel