Annotation Interface Route


@Retention(RUNTIME) @Target(FIELD) public @interface Route
Annotation used to define routes inside an application.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The route at which the controller should be registered.
  • Element Details

    • value

      String value
      The route at which the controller should be registered.

      If not specified the name of the field will be used as the route.

      Returns:
      The route at which the controller should be registered.
      Default:
      "$name"