Check out example codes for "import spring hateoas". It will help you in understanding the concepts better.

Code Example 1

<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-hateoas</artifactId>

Learn ReactJs, React Native from akashmittal.com