Add details of the request mapping conditions to mappings endpoint

Closes gh-12080
This commit is contained in:
Andy Wilkinson
2018-02-16 16:53:11 +00:00
parent 2c19257d6d
commit 17c7f027e0
9 changed files with 516 additions and 76 deletions

View File

@@ -0,0 +1,16 @@
package sample.webflux;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class ExampleController {
@PostMapping(path = "/", consumes = { MediaType.APPLICATION_JSON_VALUE,
"!application/xml" }, produces = MediaType.TEXT_PLAIN_VALUE, headers = "X-Custom=Foo", params = "a!=alpha")
public String example() {
return "Hello World";
}
}