@ -1970,17 +1970,17 @@ The following code shows a typical `@RestController` that serves JSON data:
@@ -1970,17 +1970,17 @@ The following code shows a typical `@RestController` that serves JSON data:
@ -2452,17 +2452,17 @@ The annotation-based one is quite close to the Spring MVC model, as shown in the
@@ -2452,17 +2452,17 @@ The annotation-based one is quite close to the Spring MVC model, as shown in the
@RequestMapping("/users")
public class MyRestController {
@GetMapping("/\{user}")
@GetMapping("/{user}")
public Mono<User> getUser(@PathVariable Long user) {
// ...
}
@GetMapping("/\{user}/customers")
@GetMapping("/{user}/customers")
public Flux<Customer> getUserCustomers(@PathVariable Long user) {
// ...
}
@DeleteMapping("/\{user}")
@DeleteMapping("/{user}")
public Mono<User> deleteUser(@PathVariable Long user) {
// ...
}
@ -2479,9 +2479,9 @@ The annotation-based one is quite close to the Spring MVC model, as shown in the
@@ -2479,9 +2479,9 @@ The annotation-based one is quite close to the Spring MVC model, as shown in the
@Bean
public RouterFunction<ServerResponse> monoRouterFunction(UserHandler userHandler) {