springboot連接neo4j報錯的解決方案
springboot連接neo4j報錯
今天集成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.
這是因為權限問題導致
解決方法
找到你安裝neo4j的路徑下的conf文件夾
找到 neo4j.conf 配置文件
查找里邊的 #dbms.security.auth_enabled=false
將前面的注釋#去掉,重啟springboot即可
總結
以上為個人經驗,希望能給大家一個參考,也希望大家多多支持腳本之家。
相關文章
Java使用Queryable-pageable實現分頁效果
這篇文章主要為大家介紹了Java如何使用Queryable-pageable從而實現分頁效果,文中的示例代碼簡潔易懂,感興趣的小伙伴可以動手嘗試一下2022-06-06