Springcloud数据流中的SpelParseException
我正在尝试部署一个 springcloud 数据流,如下所示:
time | http-request --url-expression='http://mydomain.fake:1234/myservice?myparams=myvalues' | log
使用的版本:
- dataflow=2.9.2
- skyper=2.8.2
- http-request= 3.2.0
但是我遇到了一些麻烦url-expresion
参数格式。流部分部署,http-request
步骤中有例外。
> Property: http.request.url-expression
> Value: http://mydomain.fake:1234/myservice?myparams=myvalues
> Origin: System Environment Property "SPRING_APPLICATION_JSON"
> Reason: failed to convert java.lang.String to org.springframework.expression.Expression (caused by
> org.springframework.expression.spel.SpelParseException: EL1041E: After
> parsing a valid expression, there is still more data in the
> expression: 'colon(:)')
我确信我在流参数中使用了错误的格式,但我找不到编写它的好方法。我尝试使用简单引号,双引号< /strong> 和无引号,并且例外情况始终相同。有什么帮助吗?
谢谢 !
I'm trying to deploy a springcloud data flow stream like this:
time | http-request --url-expression='http://mydomain.fake:1234/myservice?myparams=myvalues' | log
Versions used:
- dataflow=2.9.2
- skipper=2.8.2
- http-request= 3.2.0
But I have some troubles with the url-expresion
param format. The stream partialy deploy, with exceptions in the http-request
step.
> Property: http.request.url-expression
> Value: http://mydomain.fake:1234/myservice?myparams=myvalues
> Origin: System Environment Property "SPRING_APPLICATION_JSON"
> Reason: failed to convert java.lang.String to org.springframework.expression.Expression (caused by
> org.springframework.expression.spel.SpelParseException: EL1041E: After
> parsing a valid expression, there is still more data in the
> expression: 'colon(:)')
I'm sure that I'm using a bad format in the stream params, but I can't find the good way to write it.I tried it with simple quote, double quote and no quote, and the exception is always the same. Any help please ?
Thanks !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
已经解决了(我想是这样)。
该表达式可能像三元运算符一样采用冒号(有些像此处)
我将表达式替换
为
即可运行。谢谢 !
It's solved ( I think so ) .
Its possible that the expression takes the colon like a ternary operator ( some like here )
I replace the expression
to
and it works. Thanks !