在使用Neo4j图谱的过程中,当Neo4j数据库没有启动的使用,默认应用程序就不断的进行健康检查,检测数据库是否能够正常连接,当没有启动Neo4j数据库的使用,应用程序就会报错,提示无法进行连接:
Caused by: org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Unable to connect to localhost:7687, ensure the database is running and that there is a working network connection to it.
但是,我们可以通过SpringBoot配置文件application.yml
进行配置,停用不断的健康检查,配置如下:
server:
port: 9012
spring:
data:
neo4j:
uri: bolt://localhost
username: neo4j
password: Passw0rd
management:
neo4j:
enabled: false
即,将management.health.neo4j.enabled
配置为false
。
Reference
最新评论
能弄个电视apk 就好了
求分享站点。https://www.ziyedm.com 子夜动漫 无广告,更新及时
+62 +63 都不行 一直邮箱 验证也上不去 要么就呼叫来电 或者发送到另一台设备 但是另一台设备没有收到码 这个文章也看过了
telegram x接不到验证码