@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Controller @ResponseBody public @interface RestController
@RestController is processed if an appropriate
HandlerAdapter pair is configured such as the
pair which are the default in the MVC Java config and the MVC namespace.
@RestController is not supported with the
pair both of which are also deprecated.
|Modifier and Type||Optional Element and Description|
The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.