Annotation Type Path


@Target({TYPE,PACKAGE,MODULE}) @Retention(RUNTIME) public @interface Path
Specify the path mapping request to a controller. When placed on a package-info or a module-info file, all routes in the package/module will have value added as a prefix

 @Controller
 @Path("/customers")
 class CustomerController {
   ...
 }
 

 @Path("/customers") // all routes in this module will have a customers prefix
 module example.module {
   ...
 }

 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Element Details