1.

Explain @RestController annotation in Sprint boot?

Answer»

It is a combination of @CONTROLLER and @ResponseBody, used for CREATING a restful controller. It converts the response to JSON or XML. It ENSURES that data RETURNED by each method will be written straight into the response body instead of returning a template.



Discussion

No Comment Found