Annotation Type DeleteMapping


@Retention(CLASS) @Target(METHOD) public @interface DeleteMapping

Maps an HTTP DELETE to this method.

The path may carry {name} segments, bound with PathVariable.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Media types the route takes, matched against the request's Content-Type; a request outside them is answered 415.
    Media types the route answers with, matched against the request's Accept; a request that accepts none of them is answered 406.
    The path, relative to any RequestMapping on the class.
  • Element Details

    • value

      String[] value
      The path, relative to any RequestMapping on the class.
      Default:
      {}
    • consumes

      String[] consumes
      Media types the route takes, matched against the request's Content-Type; a request outside them is answered 415. Empty takes any.
      Default:
      {}
    • produces

      String[] produces
      Media types the route answers with, matched against the request's Accept; a request that accepts none of them is answered 406. Empty answers anything. The handler still sets the type of what it returns.
      Default:
      {}