Annotation Type Post


@Target(METHOD) @Retention(RUNTIME) public @interface Post
Marks a method that handles HTTP POST requests.
invalid input: '{@code

  @Post
  void save(Customer customer) {
      ...
  }'
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Deprecated.
    use InstrumentServerContext annotation instead
    Specify the path.
  • Element Details

    • value

      String value
      Specify the path.
      Default:
      ""
    • instrumentRequestContext

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