【发布时间】:2014-08-28 20:24:21
【问题描述】:
我们从 SIv3.x 迁移到 SIv4.0.4,发现现在 http-outbound-gateway 错误地设置了 content-type 标头。不是将其设置为这种内容类型,而是将其设置为 contentType。环顾四周,我发现这可能是因为现在 SI 使用 Spring Messaging 类,其中该属性被命名为 contentType。
public static final String CONTENT_TYPE = "contentType";
有没有办法在 http-outbound 中或在使用 object-to-json-transformer 之前正确设置此内容类型?
提前致谢 问候 古兹曼
【问题讨论】: