Vue d'ensemble:Printemps-Hateoas: exception à la création d'un nouveau lien
Je vais ajouter un nouveau lien basé sur Spring-Hateoas-Doc à la réponse JSON en utilisant la commande suivante:
linkTo(methodOn(ProductRepository.class).findOne(10L)).withRel("product");
problème:
Cependant j'ai eu l'exception suivante:
java.lang.IllegalArgumentException: 'uriTemplate' must not be null
Alors je serais reconnaissant si quelqu'un pouvait me proposer une solution authentique.