title: How to use header value router using java dsl?
body: <p>How to use header value router using java dsl?. I want to route based on the value comes in the header.</p>
  
  <p>If I pass <code>false</code> to my gateway, it is giving me </p>
  
  <blockquote>
    <p>"No bean named 'false' is defined"</p>
  </blockquote>
  
  <p><a href="https://github.com/manojp1988/spring-integration/blob/master/javadsl/src/main/java/router/headerValueRouter/HeaderValueRouterExample.java" rel="nofollow">https://github.com/manojp1988/spring-integration/blob/master/javadsl/src/main/java/router/headerValueRouter/HeaderValueRouterExample.java</a></p>
  
  <pre><code>@MessagingGateway
    public interface RouterGateway {
      @Gateway(requestChannel = "testChannel")
      String route(@Payload String payload, @Header("enabled") String isEnabled);
    }
  
  @Bean
      public IntegrationFlow routerFlow() {
        return IntegrationFlows.from("testChannel")
                               .route(headerRouter())
                               .get();
      }
  
      @Bean
      public HeaderValueRouter headerRouter() {
        HeaderValueRouter router = new HeaderValueRouter("enabled");
        router.setIgnoreSendFailures(true);
        router.setChannelMapping("true", "helloChannel");
        router.setDefaultOutputChannel(defaultOutputChannel());
        return router;
      }
  </code></pre>