Back to course

POST Mapping and Request Body

Spring Boot 0 to Hero: The Complete Java Backend Masterclass

Creating Resources

Use @PostMapping to create new data. The @RequestBody annotation maps the incoming JSON to a Java object.