0

当 Neo4j 配置被初始化,并且远程数据库没有运行时,服务器将不会启动......

    <neo4j:config graphDatabaseService="graphDatabaseService" />
    <bean id="graphDatabaseService class="org.springframework.data.neo4j.rest.SpringRestGraphDatabase">
    <constructor-arg index="0" value="http://220.10.25.24:7474/db/data/" /> 
    </bean>

当服务器没有运行时,有没有办法优雅地停止或停止它的创建?

这是一个更大的应用程序中的一个模块,我无法启动应用程序 b/c Neo4j 已停止运行..

4

1 回答 1

0

不确定那里有一个好的钩子,也许您可​​以在 https://github.com/neo4j/java-rest-binding中提出一个问题,以公开异常或某种检查方法来确定 neo4j 服务器是否还活着?

于 2012-12-21T11:19:44.753 回答