@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface ResponseBody
As of version 4.0 this annotation can also be added on the type level in which case it is inherited and does not need to be added on the method level.
RequestBody
,
RestController