I have this pom.xml:
org.springframework.boot
spring-boot-starter-parent
My spring boot version is 2.0.5.RELEASE I resolved this problem by adding this dependency
<!-- https://mvnrepository.com/artifact/com.mysema.querydsl/querydsl-jpa -->
<dependency>
<groupId>com.mysema.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<version>2.0.7</version>
</dependency>
Add following dependency in the project
<dependency>
<groupId>com.querydsl</groupId>
<artifactId>querydsl-jpa</artifactId>
<version>4.0.3</version>
</dependency>
Version number according to the your JPA version.