0

我刚刚从使用 Neo4j 1.8 升级到 1.8.1,并注意到 ExecutionEngine 构造函数合同发生了变化。ExecutionEngine( GraphDatabaseService )构造函数不再可用。

这是一个代码片段:

import org.neo4j.cypher.CypherException;
import org.neo4j.cypher.ExecutionEngine;
import org.neo4j.cypher.ExecutionResult;
import org.neo4j.graphdb.GraphDatabaseService;

public class CypherQueryExecutionService {
    private final ExecutionEngine executionEngine;

    public CypherQueryExecutionService(GraphDatabaseService 
graphDatabaseService) {
        executionEngine = new ExecutionEngine(graphDatabaseService);
    }
...

POM 提取物:

        <dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j</artifactId>
            <version>1.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.neo4j</groupId>
            <artifactId>neo4j-kernel</artifactId>
            <version>1.8.1</version>
            <type>test-jar</type>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>org.neo4j.app</groupId>
            <artifactId>neo4j-server</artifactId>
            <version>1.8.1</version>
        </dependency>

        <dependency>
            <groupId>org.neo4j.app</groupId>
            <artifactId>neo4j-server</artifactId>
            <version>1.8.1</version>
            <type>jar</type>
            <classifier>static-web</classifier>
        </dependency>

如果没有快速修复,您能否提供一个正确使用 StringLogger 的示例?在我们的例子中,我们在 SLF4J 上使用 logback。

谢谢,

史蒂文

4

0 回答 0