Annotation Interface WebController


@Controller @Documented @Target(TYPE) @Retention(RUNTIME) public @interface WebController
Indicates that an annotated class is a web controller.
Since:
1.0.0
  • 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
      Since:
      1.0.0
      Default:
      ""