Annotation Type Controller


@Target(TYPE) @Retention(RUNTIME) public @interface Controller
Marker annotation for controllers.

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

 
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specify if the http request context should be instrumented via RequestContextResolver
    Specify the path mapping request to the controller.
  • Element Details

    • value

      String value
      Specify the path mapping request to the controller.
      Default:
      ""
    • instrumentRequestContext

      boolean instrumentRequestContext
      Specify if the http request context should be instrumented via RequestContextResolver
      Default:
      false