【发布时间】:2016-10-05 15:28:46
【问题描述】:
我有代码
<int:channel id="partnerConfigChannel" />
<int:gateway id="partnerService" service-interface="org.service.PartnerService"
default-request-timeout="5000" default-reply-timeout="5000">
<int:method name="findConfig" request-channel="partnerConfigChannel" />
</int:gateway>
<int-jpa:retrieving-outbound-gateway entity-manager="entityManager"
request-channel="partnerConfigChannel"
jpa-query="select q from QueueConfiguration q where q.partnerId = :partnerId">
<int-jpa:parameter name="partnerId" expression="payload['partnerId']" />
</int-jpa:retrieving-outbound-gateway>
和java接口
public interface PartnerService {
@Payload("partnerId")
List<QueueConfiguration> findConfig();
}
我叫它
List<QueueConfiguration> qc= partnerService.findConfig();
但我遇到了异常 EL1007E:(pos 0): 在 null 上找不到属性或字段“partnerId”
请告诉我如何传递有效载荷。我尝试通过使用地图、字符串但相同的错误传递消息对象。 请告诉我在这种情况下如何传递有效载荷。
【问题讨论】: