PagingAndSortingRepository cannot be resolved
This one solved issue for me
Gradle
// https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpacompile group: 'org.springframework.data', name: 'spring-data-jpa', version: '2.0.1.RELEASE'
Maven
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa --><dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-jpa</artifactId> <version>2.0.1.RELEASE</version></dependency>
I resolved this including spring-data-commons
that included PagingAndSortingRepository
<!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-commons --><dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-commons</artifactId> <version>2.0.1.RELEASE</version></dependency>