Annotation Interface Url


@Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Url
Defines the URL path for a class or method handling HTTP requests.

When applied to a @Controller class, it specifies the base URL. When applied to a method, it defines the specific endpoint relative to the base URL. If no value is provided, an empty string is assumed.

Since:
1.0.0
Version:
1.0.0
Author:
Sandratra NIAINA
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The URL path for the annotated class or method.
  • Element Details

    • value

      String value
      The URL path for the annotated class or method.
      Returns:
      the URL path (defaults to an empty string)
      Default:
      ""