Creando controladores REST (@RestController)

@RestController es un atajo para @Controller + @ResponseBody. Marca la clase como un controlador Spring MVC donde el valor de retorno de cada método se escribe directamente en el cuerpo de la respuesta HTTP (seriado a JSON por Jackson). Las anotaciones de mapeo en los métodos definen a qué método HTTP y URL responde cada controlador.

Full content is available with a subscription.
Get full access to all courses on the platform for one year with a single payment.
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.