public class Test
{
private static RestAPI rest = new RestAPIFacade("myIp","username","password");
public static void main(String[] args)
{
Map<String, Object> foo = new HashMap<String, Object>();
foo.put("Test key", "testing");
rest.createNode(foo);
}
}
没有输出它只是无限期地挂在连接上。
环境:
Eclipse JDK 7
neo4j-rest-binding 1.9:https
://github.com/neo4j/java-rest-binding
Heroku
关于为什么这只是挂起的任何想法?
以下代码有效:
public class Test
{
private static RestAPI rest = new RestAPIFacade("myIp","username","password");
public static void main(String[] args)
{
Node node = rest.getNodeById(1);
}
}
因此,我可以正确地检索远程值。