I have this pom.xml:
org.springframework.boot spring-boot-starter-parent
Add following dependency in the project
com.querydsl querydsl-jpa 4.0.3
Version number according to the your JPA version.