答案 0 :(得分:1)
可能,但是已经称为HeaderMapper
。
请参阅该Amqp.inboundAdapter()
的以下选项:
/**
* Configure the adapter's {@link AmqpHeaderMapper};
* defaults to {@link DefaultAmqpHeaderMapper}.
* @param headerMapper the headerMapper.
* @return the spec.
*/
public S headerMapper(AmqpHeaderMapper headerMapper) {
this.target.setHeaderMapper(headerMapper);
return _this();
}
/**
* Only applies if the default header mapper is used.
* @param headers the headers.
* @return the spec.
* @see DefaultAmqpHeaderMapper#setRequestHeaderNames(String[])
*/
public S mappedRequestHeaders(String... headers) {
有关更多详细信息,请参见DefaultAmqpHeaderMapper
JavaDocs和相应的参考手册:https://docs.spring.io/spring-integration/docs/5.3.2.RELEASE/reference/html/amqp.html#amqp-message-headers
因此,可能需要的是标题名称模式的否定运算符(!
)。