Annotation Interface Controller


@Retention(RUNTIME) @Target(TYPE) public @interface Controller
Annotates a class used to handle HTTP requests. Every method in the class used to handle requests must be annotated with Handle.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • contextPath

      String contextPath
      Returns:
      The parent path for each sub-path associated with the handler methods. Defaults to an empty string meaning they are relative to the root of the API.
      Default:
      ""