@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.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
value
The value may indicate a suggestion for a logical component name,
to be turned into a Spring bean in case of an autodetected component.
|