Reformat samples with spring-javaformat 0.0.8
See gh-16418
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,8 +23,10 @@ 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