我正在开发一些带有spring集成的应用程序,而且我得到了异常
Property 'expressionString' threw exception; nested exception is org.springframework.expression.spel.SpelParseException: EL1046E:(pos 24): Cannot find terminating for string [Sanitized]
我的网关:
<int:channel id="getProductsReq"/>
<int:channel id="getProductsResp"/>
<int:chain input-channel="getProductsReq" output-channel="getProductsResp" id="getProductsChain">
<int:header-enricher>
<int:header name="Content-Type" value="application/json"/>
<int:header name="Authorization" expression="@httpSessionService.getToken()"/>
</int:header-enricher>
<int:service-activator expression="@chainLogger.log(#root, 'FO req for getProductsInfo)"/>
<int-http:outbound-gateway url="${getProducts.url}"
http-method="GET" mapped-request-headers="Authorization,Content-Type"
expected-response-type="com.app.GenericResponse">
<int-http:uri-variable name="code" expression="payload.getCode()"/>
<int-http:request-handler-advice-chain>
<beans:ref bean="integrationLoggingAdvice" />
</int-http:request-handler-advice-chain>
</int-http:outbound-gateway>
</int:chain>
Yup,GenericResponse是一种通用类型。我不知道出了什么问题。