问题描述
我遇到了Neo4j的问题.
I've got problem with Neo4j.
首先,我有很多虔诚的代码:
First of all, I've got pieace of code:
GraphDatabaseService graphDb = new EmbeddedGraphDatabase("neo4j-store");
// creating some nodes, relationships and commiting transactions
但是我在以下位置找不到这些数据: http://localhost.pl:7474/webadmin ...为什么?
but I can't find that datas in: http://localhost.pl:7474/webadmin... why?
另一方面.当我通过webadmin创建一些数据时,无法从Java应用程序中读取数据.为什么?
And on the other hand. When I create some data via webadmin I can't read it from my java application. Why?
推荐答案
Web控制台从Neo4j的安装/运行位置提取.因此,通常是{neo4j.home}\data\graph.db
,您的示例将在./neo4j-store
处创建一个数据库.解决此问题的最简单方法是将conf/neo4j-server.properties
文件中的org.neo4j.server.database.location
设置为指向neo4j-store
所在的位置.对我来说,请此处
The web console pulls from where the neo4j is installed/run from. So it's usually {neo4j.home}\data\graph.db
which your example there will create a DB at ./neo4j-store
. The easiest way to solve this is to set the org.neo4j.server.database.location
in the conf/neo4j-server.properties
file to point to where neo4j-store
is. For me check here
这篇关于Neo4j-读取和保存数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!