MiracleTanC/Neo4j-KGBuilder

报错的问题

Opened this issue · 2 comments

请问出现这种报错要怎么解决呢?已经困扰我很久了,小白求指教,谢谢
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'KGManagerController': Unsatisfied dependency expressed through field 'neo4jUtil'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'neo4jUtil': Unsatisfied dependency expressed through field 'neo4jDriver'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'neo4jDriver' defined in class path resource [com/warmer/kgmaker/util/Neo4jConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.neo4j.driver.v1.Driver]: Factory method 'neo4jDriver' threw exception; nested exception is org.neo4j.driver.v1.exceptions.ServiceUnavailableException: Connection to the database terminated. This can happen due to network instabilities, or due to restarts of the database

加一

解决了,他的pom中neo4j的驱动(driver)太低了,换成自己数据库对应的就ok,我的是4.2.3的库,用这个就行
[code=html]

org.neo4j.driver
neo4j-java-driver
4.0.1

[/code]