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
    Deprecated.
    use InstrumentServerContext annotation instead
    Specify the path mapping request to the controller.
  • Element Details

    • value

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

      @Deprecated boolean instrumentRequestContext
      Deprecated.
      use InstrumentServerContext annotation instead
      Specify if the http request context should be instrumented via RequestContextResolver
      Default:
      false