Merge branch '2.0.x' into 2.1.x
Closes gh-17078
This commit is contained in:
@@ -23,10 +23,8 @@ 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")
|
||||
@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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user