You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to suggest an udate to section: "What makes something RESTful?"
Users of the guide are not intuitively aware that the import:
"import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;"
will fix the error: The method methodOn(Class) is undefined for the type EmployeeController.
The WebMvcLinkBuilder import could be placed directly within the code snippet and a link to
Spring HATEOAS - Reference Documentation placed below the code.
The text was updated successfully, but these errors were encountered:
AAdewunmi
changed the title
Update Spring Guide: "Building REST services with Spring"
Error: The method methodOn(Class) is undefined for the type EmployeeController.
Nov 17, 2022
Hi @AAdewunmi. Thank you for the issue. This particular bit of code was causing some confusion and spawned a few different issues in the tracker. I pushed a PR #127 that should address this issue, specifically with this line.
Please try again and let us know if things can still be improved. For now I will close the issue as I believe #127 should have cleared things up. Thanks again for raising this.
Hi,
I would like to suggest an udate to section: "What makes something RESTful?"
Users of the guide are not intuitively aware that the import:
"
import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.*;
"will fix the error:
The method methodOn(Class) is undefined for the type EmployeeController.
The WebMvcLinkBuilder import could be placed directly within the code snippet and a link to
Spring HATEOAS - Reference Documentation placed below the code.
Spring HATEOAS - Reference Documentation
I don't mind being assigned this issue.
😎
The text was updated successfully, but these errors were encountered: