【发布时间】:2016-03-26 18:38:53
【问题描述】:
我想访问 neo4j 数据库。我尝试了以下方法:
ClientResource resource = new ClientResource("http://localhost:7474/db/data/cypher");
ChallengeResponse ch = new ChallengeResponse(ChallengeScheme.HTTP_BASIC);
ch.setRawValue("bmVvNGo6bmVvNGo=");
resource.setChallengeResponse(ch);
Representation re = resource.post(query);
但是,我得到一个错误:
Unauthorized (401) - Unauthorized
我在身份验证中做错了什么?
【问题讨论】:
-
为什么不使用正确的用户名/密码 API?
-
你是不是单独设置了初始密码?
标签: java http authentication servlets neo4j