错误 运行 Neo4j JDBC 示例
Error Running Neo4j JDBC Example
我遇到了一些麻烦 运行 来自 Neo4j 的示例 java jdbc。
我正在按照以下说明进行操作:GitHub Neo4j-JDBC
但是,当我到达时:
mvn compile exec:java
我有一个内置错误:
[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on
project neo4j-movies: An exception occured while executing the Java
class. null: InvocationTargetException: Unauthorized -> [Help 1]
我该如何解决这个问题?
在您的服务器中禁用身份验证或向 JDBC 驱动程序提供凭据作为连接属性。
Properties props = new Properties()
props.setProperty("user","neo4j");
props.setProperty("password","secret");
Connection con = DriverManager.getConnection("jdbc:neo4j://localhost:7474/",props);
我遇到了一些麻烦 运行 来自 Neo4j 的示例 java jdbc。 我正在按照以下说明进行操作:GitHub Neo4j-JDBC 但是,当我到达时:
mvn compile exec:java
我有一个内置错误:
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project neo4j-movies: An exception occured while executing the Java class. null: InvocationTargetException: Unauthorized -> [Help 1]
我该如何解决这个问题?
在您的服务器中禁用身份验证或向 JDBC 驱动程序提供凭据作为连接属性。
Properties props = new Properties()
props.setProperty("user","neo4j");
props.setProperty("password","secret");
Connection con = DriverManager.getConnection("jdbc:neo4j://localhost:7474/",props);