Interface ControllerTwo
-
- All Known Implementing Classes:
ControllerTwoImpl
@RequestMapping("/some/base/path") public interface ControllerTwo
Test controller two.- Author:
- Christian Bremer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description reactor.core.publisher.Mono<String>
sayHello(String name)
Say hello mono.reactor.core.publisher.Mono<String>
sayHelloTo(String name)
Say hello to mono.default reactor.core.publisher.Mono<String>
setName(String name)
Sets name.
-
-
-
Method Detail
-
sayHello
@RequestMapping(method=GET) reactor.core.publisher.Mono<String> sayHello(@RequestParam(value="name",defaultValue="Tom") String name)
Say hello mono.- Parameters:
name
- the name- Returns:
- the mono
-
sayHelloTo
@GetMapping("/greeting/{name}") reactor.core.publisher.Mono<String> sayHelloTo(@PathVariable("name") String name)
Say hello to mono.- Parameters:
name
- the name- Returns:
- the mono
-
-