Overview:
I am going to add a new link based on Spring-Hateoas-Doc to the JSON response by using the following command:
linkTo(methodOn(ProductRepository.class).findOne(10L)).withRel("product");
Problem:
However I got the following exception:
java.lang.IllegalArgumentException: 'uriTemplate' must not be null
So I would be grateful if anyone could suggest me a genuine solution.