Neo4j 3.0和Spring Data

3

我希望使用新的bolt协议来连接我的Spring应用程序到Neo4j 3.0数据库。

bolt协议已经在Spring Data中实现了吗?

1个回答

4

是的,这些版本支持Bolt:

Neo4j OGM 2.0.2,可与SDN 4.1.1.RELEASE一起使用(您需要明确包含此Neo4j OGM版本)。

或者当前的SDN快照4.2.0.BUILD-SNAPSHOT,它依赖于最新的Neo4j OGM快照。

还需要Bolt驱动程序依赖项:

<dependency>
    <groupId>org.neo4j</groupId>
    <artifactId>neo4j-ogm-bolt-driver</artifactId>
    <version>2.0.2</version>
</dependency>

Bolt驱动程序的配置文档可在http://neo4j.com/docs/ogm-manual/current/#_configuring_the_bolt_driver找到。


当我包含了正确的版本后,我可以像以前一样使用以下代码:public Neo4jServer neo4jServer() { return new RemoteServer(URL, USERNAME, PASSWORD); } - aGO
1
很抱歉,随着SDN 4.1中驱动程序的引入,RemoteServer已经不存在了。不过这很简单- http://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#_spring_configuration - Luanne
SDN的4.2.0版本计划何时发布? - aGO

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接