Spring integration Spring集成:无法解决';json_uuuutypeid_uuuu';在';javaTypes';

Spring integration Spring集成:无法解决';json_uuuutypeid_uuuu';在';javaTypes';,spring-integration,Spring Integration,在我发送请求消息并获取有效负载数据(json)后,我想从gitlab应用程序中获取json数据,我使用postman chrome插件附加了内容 我得到的错误如下 Caused by: java.lang.IllegalArgumentException: Could not resolve 'json__TypeId__' in 'javaTypes'. at org.springframework.integration.support.json.AbstractJacksonJso

在我发送请求消息并获取有效负载数据(json)后,我想从gitlab应用程序中获取json数据,我使用postman chrome插件附加了内容

我得到的错误如下

Caused by: java.lang.IllegalArgumentException: Could not resolve 'json__TypeId__' in 'javaTypes'.
    at org.springframework.integration.support.json.AbstractJacksonJsonObjectMapper.createJavaType(AbstractJacksonJsonObjectMapper.java:67)
    at org.springframework.integration.support.json.Jackson2JsonObjectMapper.extractJavaType(Jackson2JsonObjectMapper.java:119)
    at org.springframework.integration.support.json.Jackson2JsonObjectMapper.extractJavaType(Jackson2JsonObjectMapper.java:44)
标题内容

Cache-Control → max-age=0, private, must-revalidate
Connection → keep-alive
Content-Length → 7744
Content-Type → application/json
Date → Thu, 25 Jun 2015 05:50:04 GMT
ETag → "bf03cd61784161d9550b5924f29559f0"
Link → <http://70.121.224.25/gitlab/api/v3/users?page=2&per_page=0>; rel="next", <http://70.121.224.25/gitlab/api/v3/users?page=1&per_page=0>; rel="first", <http://70.121.224.25/gitlab/api/v3/users?page=20&per_page=0>; rel="last"
Server → nginx
Status → 200 OK
X-Request-Id → a7aced18-64aa-4932-94c0-779270b637d5
X-Runtime → 0.121132
我的spring集成程序如下所示。我提到了这个问题。我从标头收到的标头中没有标头值

<int-http:outbound-gateway 
        id="http-outbound-gateway"
        auto-startup="true" 
        http-method="GET" 
        charset="UTF-8"
        request-channel="redca-gitlab-request-prepare-channel"
        reply-channel="redca-hub-gitlab-response-channel"
        url="{gitlab.url}{gitlab.data.type}?private_token={gitlab.private.token}">
         <int-http:uri-variable name="gitlab.url" expression="headers['gitlab.url']"/>  
         <int-http:uri-variable name="gitlab.data.type" expression="headers['gitlab.data.type']"/>
         <int-http:uri-variable name="gitlab.private.token" expression="headers['gitlab.private.token']"/>
    </int-http:outbound-gateway> 

    <int:chain input-channel="redca-hub-gitlab-response-channel"  output-channel="redca-output-channel">
        <int:header-enricher>
            <int:header name="json__TypeId__" expression="headers['x-json__TypeId__']" />
        </int:header-enricher>
        <int:json-to-object-transformer object-mapper="mapper"></int:json-to-object-transformer>
    </int:chain>



    <bean id="mapper" class="org.springframework.integration.support.json.Jackson2JsonObjectMapper">
</bean>

我没有看到
x-json\uuuuuu TypeId\uuuuu
头-链接的问题是与Spring Integration HTTP服务器对话并传送头,而不是与某些外部HTTP服务对话

由于没有标题,因此需要告诉
您希望将对象转换为什么

<json-to-object-converter type="java.util.HashMap" />

(或某些域对象,如果已设置jackson映射)

<json-to-object-converter type="java.util.HashMap" />