title: Spring 5 WebFlux Mono and Flux
body: <p>In Spring 5 I just know Spring WebFlux Handler method handles the request and returns <strong>Mono</strong> or <strong>Flux</strong> as response.</p>
  
  <pre><code>@Component
  public class HelloWorldHandler {
      public Mono&lt;ServerResponse&gt; helloWorld(ServerRequest request) {
          return ServerResponse.ok().contentType(MediaType.TEXT_PLAIN).body(BodyInserters.fromObject("Hello World"));
      }
  }
  </code></pre>
  
  <p>But I have no idea what means <strong>Mono</strong> and <strong>Flux</strong> and how it works with the WebFlux Handler.</p>
  
  <p>Can any one simply explain</p>
  
  <p>1.What means <strong>Mono</strong> and <strong>Flux</strong>.</p>
  
  <p>2.How it works with the <strong>WebFlux Handler</strong>.</p>
  
  <p>Thanks in advance.</p>