Spring boot spring数据neo4j嵌入式:连接到本地主机:7474失败:连接被拒绝

Spring boot spring数据neo4j嵌入式:连接到本地主机:7474失败:连接被拒绝,spring-boot,spring-data-neo4j,Spring Boot,Spring Data Neo4j,具有此配置: @Configuration @EnableNeo4jRepositories("com.mydb.repository") @EnableTransactionManagement public class Neo4jConfig extends Neo4jConfiguration { @Bean @Override public Neo4jServer neo4jServer() { return new RemoteServer( "

具有此配置:

@Configuration
@EnableNeo4jRepositories("com.mydb.repository")
@EnableTransactionManagement
public class Neo4jConfig extends Neo4jConfiguration {
    @Bean
    @Override
    public Neo4jServer neo4jServer() {
        return new RemoteServer( "http://localhost:7474" );
    }       
    @Bean
    public GraphDatabaseService graphDatabaseService() {

        return new GraphDatabaseFactory().newEmbeddedDatabaseBuilder( new File("./mydb.db") )
                .setConfig( ServerSettings.auth_enabled, Boolean.FALSE.toString() )             
                .newGraphDatabase();

    }    
    @Bean
    @Override
    @Scope(proxyMode = ScopedProxyMode.TARGET_CLASS)
    public Session getSession() throws Exception {
        return super.getSession();
    }        
    @Bean
    @Override
    public SessionFactory getSessionFactory() {
        return new SessionFactory("com.mydb.model");
    }    
}
我有两个错误:

1\我无法将会话保持在“会话”范围内

2\我有一个异常:连接到本地主机:7474失败:连接被拒绝:

服务器是嵌入式的,它应该在没有在本地机器上安装任何服务器的情况下启动吗

Spring-boot 1.3.0 (Last) and 
<dependency>
        <groupId>org.neo4j</groupId>
        <artifactId>neo4j</artifactId>
        <version>2.3.1</version>
</dependency>
<dependency>
        <groupId>org.springframework.data</groupId>
        <artifactId>spring-data-neo4j</artifactId>
        <version>4.0.0.RELEASE</version>
</dependency>
Spring boot 1.3.0(最新版本)和
org.neo4j
neo4j
2.3.1
org.springframework.data
spring-data-neo4j
4.0.0.0发布

用于Neo4j的Spring数据4.0版不支持嵌入式版本的Neo4j

您需要在本地计算机上安装Neo4j


“SDN 4.1将支持嵌入式版本。”@Luane

您使用的是哪个版本的SDN?我不知道您所说的SDN是什么意思,但我用使用过的版本更新了我的问题。它是否确定,我选择Neo4j是因为它可以用作嵌入式服务器,否则我可以去MongoDb或Cassandra…?这里没有提到它!!SDN 4.0.0.RELEASE不支持neo4j嵌入式。仅指远程服务器。SDN 4.1将支持嵌入式,但尚未发布