Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/359.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring集成响应未填充json负载_Java_Spring_Spring Integration - Fatal编程技术网

Java Spring集成响应未填充json负载

Java Spring集成响应未填充json负载,java,spring,spring-integration,Java,Spring,Spring Integration,我正在尝试配置一个简单的http入站网关,它将接受GET请求并以JSON的有效负载形式发送一些响应。 下面是Spring集成配置 <int:channel id="employeeSearchRequest" /> <int:channel id="employeeSearchResponse" /> <int-http:inbound-gateway id="inboundEmployeeSearchRequestGateway" supported-

我正在尝试配置一个简单的http入站网关,它将接受GET请求并以JSON的有效负载形式发送一些响应。 下面是Spring集成配置

<int:channel id="employeeSearchRequest" />
<int:channel id="employeeSearchResponse" />


<int-http:inbound-gateway id="inboundEmployeeSearchRequestGateway"
    supported-methods="GET, POST"
    request-channel="employeeSearchRequest"
    reply-channel="employeeSearchResponse"
    mapped-response-headers="Return-Status, Return-Status-Msg, HTTP_RESPONSE_HEADERS"
    view-name="/employee"
    path="/services/employee/{id}/search"
    reply-timeout="50000">

    <int-http:header name="employeeId" expression="#pathVariables.id"/>

</int-http:inbound-gateway>




<int:service-activator id="employeeServiceActivator"
                input-channel="employeeSearchRequest"
                output-channel="employeeSearchResponse"
                ref="employeeSearchService"
                method="getEmployee"
                requires-reply="true"
                send-timeout="60000"/>
当我从postman点击端点时,标题被填充,但有效负载并不像预期的那样出现,它出现如下:

{
"timestamp": 1581752821403,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/services/employee/12/search"
}
我在类路径中有com.fasterxml.jackson.core


任何我缺少的指针

服务器上必须存在一些异常。您还可以打开服务器上的调试日志记录,以查看当服务器收到请求时发生的情况。是否有机会了解如何配置Web应用?集成配置如何初始化并填充到应用程序上下文中?
{
"timestamp": 1581752821403,
"status": 404,
"error": "Not Found",
"message": "No message available",
"path": "/services/employee/12/search"
}