org.springframework.web.bind.annotation

## Annotation Type RestController

-     @Target(value=TYPE)
       @Retention(value=RUNTIME)
       @Documented
       @Controller
       @ResponseBody
      public @interface RestController

  A convenience annotation that is itself annotated with `@Controller` and `@ResponseBody`.

  Types that carry this annotation are treated as controllers where `@RequestMapping` methods assume `@ResponseBody` semantics by default.

  Since:
    4.0
  Author:
    Rossen Stoyanchev, Sam Brannen

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `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.

- - ### Element Detail

    - #### value

          public abstract 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.
      Returns:
        the suggested component name, if any
      Since:
        4.0.1
      Default:
        ""