mirror of https://github.com/dapr/java-sdk.git
Test removing things from method invoke controller
Signed-off-by: Artur Ciocanu <ciocanu@adobe.com>
This commit is contained in:
parent
cd116aa909
commit
27e9eedece
|
@ -7,7 +7,6 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||||
import org.springframework.web.bind.annotation.PutMapping;
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
import org.springframework.web.servlet.function.ServerRequest;
|
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
|
@ -77,11 +76,7 @@ public class MethodInvokeController {
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping(path = "/persons")
|
@GetMapping(path = "/persons")
|
||||||
public List<Person> getPersons(ServerRequest request) {
|
public List<Person> getPersons() {
|
||||||
Optional<String> uri = request.param("uri");
|
|
||||||
|
|
||||||
uri.ifPresent(value -> System.out.println("MethodInvokeController->get persons with uri: " + value));
|
|
||||||
|
|
||||||
return persons;
|
return persons;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue