title: Spring Integration - http inbound
body: <p>im trying to make a http inbound but when i print my message the payload its empty, what am i missing here?</p>
  <pre><code>@Slf4j
  @Component
  public class HttpInboundGateway {
  
    @Bean
    public IntegrationFlow inGate1() {
        log.info(&quot;Initializing inbound gateway...&quot;);
        return IntegrationFlows.from(Http.inboundChannelAdapter(&quot;/&quot;)
              .requestPayloadType(PayloadObj.class))
              .channel(&quot;transfer_next_channel&quot;)
              .get();
    }
  
    @Bean
    @ServiceActivator(inputChannel = &quot;transfer_next_channel&quot;)
    public MessageHandler handler() {
        return new MessageHandler() {
          @Override
          public void handleMessage(Message&lt;?&gt; message) throws MessagingException {
              System.out.println(&quot;myHandlerPayload: &quot; + message.getPayload());
              System.out.println(&quot;myHandlerHeader: &quot; + message.getHeaders());
          }
      };
    }
  }
  </code></pre>
  <p>PayloadObj class expected:</p>
  <pre><code>@Data
  @NoArgsConstructor
  public class PayloadObj {
  
      String name;
      String job;
  }
  </code></pre>
  <p>EDIT 1: As requested</p>
  <p>Curl from Postman</p>
  <pre><code>curl --location --request GET 'http://localhost:9090/' \
  --header 'Content-Type: application/json' \
  --data-raw '{
      &quot;name&quot;:&quot;Marcos&quot;,
      &quot;job&quot;:&quot;Dev Jr&quot;
  }'
  </code></pre>
  <p>Print from handler:</p>
  <pre><code>myHandlerPayload: {} --- Payload
  myHandlerHeader: {content-length=46, http_requestMethod=GET, 
  host=localhost:9090, http_requestUrl=http://localhost:9090/, 
  connection=keep-alive, id=e67aef3d-938a-7ac3-eb7d-ddaf9cd74f4e, 
  contentType=application/json;charset=UTF-8, accept-encoding=gzip, 
  deflate, br, user-agent=PostmanRuntime/7.28.4, accept=*/*, 
  timestamp=1642168826837}
  </code></pre>