在类型'java.util.LinkedHashMap'的对象上找不到-也许不是公共的?

时间:2019-08-20 20:26:34

标签: spring-mvc jira-rest-api

严重:路径为[/ PrimeBSOWebService]的上下文中servlet [rest]的Servlet.service()引发异常[请求处理失败;嵌套异常是org.springframework.expression.spel.SpelEvaluationException:EL1008E :(位置15):在类型为“ java.util.LinkedHashMap”的对象上找不到属性或字段“ partnershipId”-可能不是公共的吗? / p>

<int:header-enricher input-channel="retrieveFrontEndLoadTableHttpResponse">
    <int:header name="http_statusCode" value="201" overwrite="true" />
</int:header-enricher>

<int-http:inbound-gateway request-channel="retrievePartnershipHttpRequest"
    reply-channel="retrievePartnershipHttpResponse" supported-methods="GET" 
    path="/mutual-fund-product/v1/retrieve/partnerships/{partnership-id}"
    payload-expression="#pathVariables.partnershipId">      
</int-http:inbound-gateway>

<int:json-to-object-transformer
    input-channel="retrievePartnershipHttpRequest"
    type="com.cgi.bkifs.rest.prime.contract.partnership.RetrievePartnershipRequest"
    output-channel="retrievePartnershipRequest" object-mapper="customObjectMapper" />

<int:object-to-json-transformer
    input-channel="retrievePartnershipResponse" output-channel="retrievePartnershipHttpResponse"
    object-mapper="customObjectMapperBean" />

1 个答案:

答案 0 :(得分:0)

我认为可能是因为名称不同: 路径中的partnership-id和访问路径变量时的partnershipId