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