Annotation Interface WebController


@Controller @Documented @Target(TYPE) @Retention(RUNTIME) public @interface WebController
Indicates that an annotated class is a web controller.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines a prefix that will be applied to all routes defined in the annotated class.
  • Element Details

    • prefixRoute

      String prefixRoute
      Defines a prefix that will be applied to all routes defined in the annotated class.
      Returns:
      The prefix to apply
      Default:
      ""