@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Controller @ResponseBody public @interface RestController
@Controller and @ResponseBody.
Types that carry this annotation are treated as controllers where
@RequestMapping methods assume
@ResponseBody semantics by default.
NOTE: @RestController is processed if an appropriate
HandlerMapping-HandlerAdapter pair is configured such as the
RequestMappingHandlerMapping-RequestMappingHandlerAdapter
pair which are the default in the MVC Java config and the MVC namespace.
In particular @RestController is not supported with the
DefaultAnnotationHandlerMapping-AnnotationMethodHandlerAdapter
pair both of which are also deprecated.
public abstract String value