springboot 连接neo4j报错
·
org.springframework.transaction.CannotCreateTransactionException: Could not open Neo4j Session for transaction; nested exception is org.neo4j.driver.exceptions.AuthenticationException: The client is unauthorized due to authentication failure.
Springboot中连接neo4j报以上错误,但在项目中已经配置好数据库账号密码。
解决方法如下:
① 首先进入neo4j_desktop,在数据库右上角找出Manage

② 找到Configuration
③找到neo4j.conf
④修改neo4j.conf
#dbms.security.auth_enabled=false
将#去掉
把最后一句的#去掉即可。
确保dbms.security.auth_enabled=false
⑤重启数据库。
再次测试,连接成功。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐





所有评论(0)