@RestController

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

A convenience stereotype annotations that it is itself annotated with @Controller and @ResponseBody. It is used to designate REST controller components. Being a stereotype annotation, marks the class for discovery by component scanning. @RequestMapping methods assume @ResponseBody semantics by default.