Developing REST services in Spring
Explore how to develop REST services in Spring by using key annotations like @RestController and automatic JSON to POJO conversion. Understand REST architecture principles and learn how HTTP methods support CRUD operations in a stateless client-server communication model.
We'll cover the following...
REST support in Spring
Spring framework is a very good choice for creating REST applications. Spring provides specialized annotations that make RESTful application development easy. Some examples include @RestController, @ResponseBody and @ResponseStatus etc.
Spring also automatically handles Jackson integration which makes conversion of data from JSON to POJO and vice versa a breeze. Any JSON data received by the controller is automatically converted to a POJO and any POJO returned by the controller is converted to JSON. ...