neo4j 无法连接到数据库

lymgl2op  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(428)

我试图在数据库中使用Neo4j做一个java springboot项目,当我试图在postman中执行和测试我的API时,它向我显示了这个错误:

Connection to the database terminated. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.

我已经通过在application.properties中添加这一行来验证它想要加密的内容:

spring.data.neo4j.uri=bolt://localhost:7687
spring.data.neo4j.username=Example1
spring.data.neo4j.password=secret
spring.data.neo4j.database =stud
org.neo4j.driver.config.encrypted=true

如何解决我的问题谢谢

rfbsl7qr

rfbsl7qr1#

我也有同样的问题,我通过这些步骤解决了它。(可能还有其他方法,但这对我来说很有效)。
1.在Neo4j中创建新数据库(本地)
1.设置数据库的密码
1.在连接中使用数据库名称,用户名为“neo4j”,密码用于创建项目。
完成这些步骤后,我可以连接到Neo4j DB。
谢谢你,
Atul

相关问题