title: Response body is empty when using DeferredResult
body: <p>Response body is empty when using DeferredResult with Java Config.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>@Controller
  public class HomeController {
  
      @RequestMapping("/")
      public DeferredResult&lt;ModelAndView&gt; home() {
          final DeferredResult&lt;ModelAndView&gt; result = new DeferredResult&lt;&gt;();
  
          Timer timer = new Timer();
          timer.schedule(new TimerTask() {
              @Override
              public void run() {
                  result.setResult(new ModelAndView("home", Collections.singletonMap("name", "World")));
              }
          }, 2);
  
          return result;
      }
  }
  </code></pre>
  
  <p><strong>Configuration:</strong></p>
  
  <pre><code>@Configuration
  @ComponentScan(basePackages = "to.talk.gzip.test")
  @PropertySource(value = "classpath:/application.properties")
  @EnableWebMvc
  public class AppConfig {
  
      @Bean
      public ViewResolver mustacheViewResolver() {
          MustacheViewResolver resolver = new MustacheViewResolver();
          resolver.setPrefix("views/");
          resolver.setSuffix(".html");
          return resolver;
      }
  }
  </code></pre>