Rest Api is a practice of separating the front and back, and is a set of standards or norms developed.
First we build a Spring boot project
Add Spring web when choosing dependencies
Set the port number to 8081
Add Controller to add @RestController and @RequestMapping annotations
Browser request interface
You can also use Postman to directly pass the value class to introduce the @RequestBody annotation