Annotation Type InstrumentServerContext


@Retention(SOURCE) @Target({TYPE,METHOD}) public @interface InstrumentServerContext
Marks a controller method to be instrumented with RequestContextResolver.

When instrumented,resolver.currentRequest() can be used to retrieve the current request during a handler method execution


 RequestContextResolver resolver = ...

 @Get
 @InstrumentServerContext
 void helloWorld(long id) {
  Context = resolver.currentRequest()
   ...
 }