有了这个Spring-XML配置
<to uri="http://localhost:8088/?httpMethod=GET&bridgeEndpoint=true&socketTimeout=10000&throwExceptionOnFailure=false"/>我在IntelliJ IDEA中得到了一个socketTimeout is a custom option that is not part of the Camel component警告。
实际上,在camel-docs中,我在组件选项中看到socketTimeout,而上面代码片段中的其他选项在查询参数中,所以问题是是否应该以不同的方式指定socketTimeout?正确的做法是什么?
提前感谢
发布于 2020-09-18 22:14:21
它被定义为组件选项,因此无法从终结点uri使用它。如果您使用的是spring,您可以执行类似https://camel.apache.org/manual/latest/configuring-camel.html#ConfiguringCamel-WorkingwithSpringXML的操作来配置组件的超时。
https://stackoverflow.com/questions/63957124
复制相似问题