Controllers
Controllers are easy to implement:
HTTP operations are mapped with specific annotations:
All the HTTP verbs can be mapped. This can be chosen by usin the specific annotations or the generic one:
REST Controller
There is a specific annotation for REST controllers:
This adds the @ResponseBody annotation, indicating that the values returned by annotated methods will be stored in the response body.
Otherwise operations make use of the same mappings:
Last updated
Was this helpful?