将 SI 从 v 2.2 升级到 v 3.0.5 后,我收到以下网关的错误。v 3.x 中网关接口的行为是否已更改为不接受消息类型?任何提示将不胜感激为什么会发生这种情况。
org.springframework.expression.spel.SpelEvaluationException: EL1004E:(pos 8): Method call: Method sendStat(my.domain.ReplyStatEvent) can not be found on com.sun.proxy.$Proxy22 type]
void sendStat(@Payload Message<? extends LiveStatEvent> message);
ReplyStatEvent 扩展了 LiveStatEvent 并且使用如下服务激活器定义调用网关:
<int:service-activator ref="liveStatsGateway" method="sendStat" />
将界面更改为以下内容后,它可以正常工作。
void sendStat(@Payload LiveStatEvent message);