在Neo4j 1.9.2中,我使用了(代码#1):
EmbeddedNeo4j.graphDb = new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder("path")
.loadPropertiesFromFile( "configpath" )
.newGraphDatabase();
registerShutdownHook( graphDb );
启动嵌入式服务器。然后我用来访问Web界面(代码#2):
WrappingNeoServerBootstrapper srv;
srv = new WrappingNeoServerBootstrapper( (GraphDatabaseAPI) graphDb, (ServerConfigurator)config);
srv.start();
由于WrappingNeoServerBootstrapper在1.9.5中已弃用,是否还有办法访问Web界面(代码#1没问题,但没有可用的Web界面)?