class Test{
public Mono<ServerResponse> test(ServerRequest req){
Mono<String> data = Mono.just("test");
System.out.print(data);
return ServerResponse.ok.body(data, String.class);
}
}
When the client makes a request, "MonoJust" is printed at line 4, but "test" is returned in the Http Response Body. I know that a publisher doesn't produce data before a subscription, so why does the Http Response contain "test" not "MonoJust"?