Spring Boot의 버전에 따른 Spring Project 호환 이슈

Spring Boot1.3.6.RELEASE 버전에서 개발하고 있었는데, 아무리 아래 오류가 뜨며 Spring Data REST가 제대로 import가 되지 않았다.

1
org.springframework.data.rest.core.annotation.RepositoryRestResource cannot be resolved to a type

아무리 이리저리 찾아봐도 내 증상에 맞는 답이 나오지 않아서, 혹시나 Deprecated된건가 싶어서 버전을 낮춰봤더니 정상적으로 import가 된다. ㅠㅠ

현재 Spring Boot의 버전은 1.2.8.RELEASE이고, pom.xml에서의 세팅은 아래와 같다.

1
2
3
4
5
6
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.2.8.RELEASE</version>
<relativePath /> <!-- lookup parent from repository -->
</parent>