Spring cloud 使用spring云数据流时,未找到sftp源启动器应用程序文件\u name头

Spring cloud 使用spring云数据流时,未找到sftp源启动器应用程序文件\u name头,spring-cloud,spring-cloud-dataflow,spring-integration-sftp,Spring Cloud,Spring Cloud Dataflow,Spring Integration Sftp,spring cloud数据流sftp source starter应用程序(mode=contents)。但是,当我将此源连接到日志接收器时,我会看到一些标题(如内容类型),但不会看到文件名标题。我想用这个头将文件上传到同名的S3 spring服务器:spring云数据流本地服务器(v1.2.3.RELEASE) 我的应用程序都是从导入的 流定义: stream create--definition“sftp--remote dir=/incoming--username=myuser--pa

spring cloud数据流sftp source starter应用程序(
mode=contents
)。但是,当我将此源连接到日志接收器时,我会看到一些标题(如
内容类型
),但不会看到
文件名
标题。我想用这个头将文件上传到同名的S3

spring服务器:
spring云数据流本地服务器(v1.2.3.RELEASE)

我的应用程序都是从导入的

流定义:
stream create--definition“sftp--remote dir=/incoming--username=myuser--password=mypwd--host=myftp.company.io--mode=contents--filename pattern=preload_file_2017_--allow unknown key=true|log--name test_sftp u___log

将日志应用程序配置为
--expression=#root--level=debug
没有任何区别。此外,在编写我自己的接收器时,如果尝试访问
文件名
头,我会收到一条错误消息,说明这样的头不存在


记录源和接收器中的代码片段

请遵循下面的链接,您需要编写自己的
源代码
,并在
文件读取消息源
之后手动向下游填充这样的标题。只有在这之后,才能将包含内容和适当标题的消息发送到目标目的地。