我试图执行以下 curl 命令来运行作业:
curl -k --basic --user 'user:psw' -d 'input.string= {"user":13}' 'https://localhost:8090/jobs?appName=test&classPath=test.ImportCSVFiles&context=import&sync=true'
但我收到以下错误:
"com.typesafe.config.ConfigException$WrongType: String: 1: input.string has type OBJECT rather than STRING"
我的想法是传递多个参数,例如 sql 查询。一种 json 格式,可以轻松处理我提交的 jar。
我走对了还是有其他方法?