In case you are using HATEOAS v1.0 and above (Spring boot >= 2.2.0), do note that the classnames have changed. Notably the below classes have been renamed:
ResourceSupport
changed toRepresentationModel
Resource
changed toEntityModel
Resources
changed toCollectionModel
PagedResources
changed toPagedModel
ResourceAssembler
changed toRepresentationModelAssembler
More information available in the official documentation here.
When using Spring boot starter, the below dependency would suffice to include HATEOAS:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>
</dependency>
Hoping this information will help someone like me who searched for hours to find why Resource
class was not getting resolved.
스프링부트 버전 2.2 이상 이신분들은 참고하시면 될거 같아요~
답변 2