spring-boot REST Services


@ControllerIndicates that an annotated class is a "Controller" (web controller).
@RequestMappingAnnotation for mapping web requests onto specific handler classes (if we used with class) and/or handler methods (if we used with methods).
method = RequestMethod.GETType of HTTP request methods
ResponseBodyAnnotation that indicates a method return value should be bound to the web response body
@RestController@Controller + ResponseBody
@ResponseEntityExtension of HttpEntity that adds a HttpStatus status code, we can control the return http code