我希望在 spring-xd 容器启动时创建一个流,而不必通过 xd-shell 手动输入它。我想要; 1. 启动 xd-singlenode(通过 bash 调用) 2.http --port=8080 | file
在容器启动后部署预先创建的流定义(例如)
我知道有一个 url 可以调用 ( curl -POST http://127.0.0.1:9393/streams?name=mystream&definition=http|file
),但是我在指定额外的配置时遇到了麻烦 (比如--port=8080
) 并且管道 ( |
) 也造成了一些麻烦。
谢谢