neo4j WrappingNeoServerBootstrapper无法正常工作

时间:2014-11-26 08:19:59

标签: neo4j

我在嵌入模式下使用neo4j并希望在浏览器上访问它。我正在使用WrappingNeoServerBootstrapper。

WrappingNeoServerBootstrapper neoServerBootstrapper;


        try {
            GraphDatabaseAPI api = (GraphDatabaseAPI) graphDatabaseService;

            ServerConfigurator config = new ServerConfigurator(api);
            config.configuration()
                .addProperty(Configurator.WEBSERVER_ADDRESS_PROPERTY_KEY, "127.0.0.1");
            config.configuration()
                .addProperty(Configurator.WEBSERVER_PORT_PROPERTY_KEY, "7575");

            neoServerBootstrapper = new WrappingNeoServerBootstrapper(api, config);
            neoServerBootstrapper.start();
        }
        catch(Exception e) {
            e.printStackTrace()
           //handle appropriately
        }

服务器上升到7575,但当我查询然后它只是加载,我没有数据。

我收到此脚本错误

TypeError: Argument 1 of Window.getComputedStyle does not implement interface Element.


...elector),!match||!match[1]&&context)return!context||context.jquery?(context||roo...

并且数据也不是来自服务器,得到错误302和204。

1 个答案:

答案 0 :(得分:0)

你必须将它添加到你的pom.xml:

<dependency>
  <groupId>org.neo4j.app</groupId>
  <artifactId>neo4j-server</artifactId>
  <classifier>static-web</classifier>
  <version>${neo4j.version}</version>
</dependency> 

请参阅:http://neo4j.com/docs/1.8.2/server-embedded.html

相关问题