Skip to content

Commit 764b870

Browse files
committed
Polishing
Signed-off-by: Sébastien Deleuze <[email protected]>
1 parent e31e46d commit 764b870

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ TIP: You can use `WebClient` to communicate with non-reactive, blocking services
126126

127127
== Make the Application Executable
128128

129-
We're going to use the `main()` method to drive our application and get the Greeting message from our endpoint.
129+
We're going to use the `main()` method to drive our application and get the `Greeting` message from our endpoint.
130130

131131
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
132132
.Java
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
package com.example.reactivewebservice;
22

3-
43
public record Greeting(String message) {
54
}

complete/src/main/java/com/example/reactivewebservice/GreetingRouter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class GreetingRouter {
1616
@Bean
1717
public RouterFunction<ServerResponse> route(GreetingHandler greetingHandler) {
1818

19-
return RouterFunctions
20-
.route(GET("/hello").and(accept(MediaType.APPLICATION_JSON)), greetingHandler::hello);
19+
return RouterFunctions.route(GET("/hello")
20+
.and(accept(MediaType.APPLICATION_JSON)), greetingHandler::hello);
2121
}
2222
}

0 commit comments

Comments
 (0)