【发布时间】:2017-09-29 14:49:08
【问题描述】:
我正在为 ArangoDB 构建 CRUD 接口作为 Java 服务。
我的 ArangoDB 服务具有动态 IP,但具有静态 URL。因此我想指定 URL 而不是 IP 和端口。
但是当我在 arangodb.properties 文件中设置它时,我得到以下异常:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netcracker.unm.activeinventory.services.ArangoService]: Constructor threw exception; nested exception is com.arangodb.ArangoDBException: Could not load property-value arangodb.hosts=127.0.0.1:8538,127.0.0.1:8529,http://arangodb-nms-infra.sdnoshm05.com:443. Expected format ip:port,ip:port,...
我该怎么做?
更新
我发现我必须连接到 https 服务器。如何在我的 arangodb.properties 文件中指定它?
我尝试使用 unix wget 命令连接到服务器端点。如果我不指定 https 协议,它不会连接。所以我的 ArangoDB 客户端没有,如果有普通的 ip:port。我只是得到java.net.ConnectException: Connection refused 异常。
【问题讨论】: