更新时间:2023-01-12 17:20:58
我终于RTFM ...
我的pom.xml
中有以下依赖项:
I finally RTFM...
I had the following dependency in my pom.xml
:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j</artifactId>
<version>3.4.0</version>
</dependency>
然后我发现了: https://neo4j.com/docs/java-reference/current/tutorials-java-embedded/#tutorials-java-embedded-bolt 该文档有些过时,因为它使用了已弃用的配置.但是他们对此进行了解释:
Then I found this: https://neo4j.com/docs/java-reference/current/tutorials-java-embedded/#tutorials-java-embedded-bolt The documentation is a bit outdated because it uses deprecated configuration. But they explain this:
Neo4j浏览器和官方Neo4j驱动程序使用Bolt数据库 与Neo4j通信的协议.默认情况下,Neo4j Embedded执行 不暴露Bolt连接器,但是您可以启用一个.这样做允许 您可以将服务Neo4j Browser连接到嵌入式实例.
The Neo4j Browser and the official Neo4j Drivers use the Bolt database protocol to communicate with Neo4j. By default, Neo4j Embedded does not expose a Bolt connector, but you can enable one. Doing so allows you to connect the services Neo4j Browser to your embedded instance.
他们明确指出要使用的正确依赖项是:
And they make clear the correct dependency to use is:
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-bolt</artifactId>
<version>3.4.0</version>
</dependency>