在使用存储桶表达式处理之前,如何在S3存储中查看S3-出站网关中是否有该存储桶。如果存储桶不可用,则应将其重定向到errorchannel。
<int-aws:s3-outbound-gateway id="FileGenerationChannelS3"
request-channel="filesOutS3ChainChannel"
reply-channel="filesArchiveChannel"
transfer-manager="transferManager"
bucket-expression="headers.TARGET_BUCKET"
command="UPLOAD">发布于 2018-08-15 00:01:28
<int-aws:s3-outbound-gateway>是典型的MessageHandler-based事件驱动型消费者。可以在ExpressionEvaluatingRequestHandlerAdvice中应用具有所需failureChannel的<int-aws:request-handler-advice-chain>。
有关详细信息,请参阅Reference Manual。
https://stackoverflow.com/questions/51843884
复制相似问题