简体   繁体   中英

How to have Neo4j embedded in Java applications + web interface?

In Neo4j 1.9.2, I used (code #1) :

EmbeddedNeo4j.graphDb = new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder("path")
.loadPropertiesFromFile( "configpath" )
.newGraphDatabase();
registerShutdownHook( graphDb );

to launch Embedded server. Then I used, to get access to the web interface (code #2):

WrappingNeoServerBootstrapper srv;
srv = new WrappingNeoServerBootstrapper( (GraphDatabaseAPI) graphDb, (ServerConfigurator)config);
srv.start();

Since WrappingNeoServerBootstrapper is deprecated in 1.9.5, is there still a way to get access to the web interface (code #1 is ok, but no web interface available)?

I only know the non-programmatical-way: Download the Neo4j community edition ( Neo4j ), install, start the program, and point it to your db. You can then access the web interface via localhost:7474.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM