MiracleTanC / Neo4j-KGBuilder

Neo4j+springboot+vue+d3.js知识图谱构建和可视化
1.15k stars 413 forks source link

报错的问题 #26

Open august802 opened 3 years ago

august802 commented 3 years ago

请问出现这种报错要怎么解决呢?已经困扰我很久了,小白求指教,谢谢 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

Mingxiangyu commented 3 years ago

加一

Mingxiangyu commented 3 years ago

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

org.neo4j.driver neo4j-java-driver 4.0.1

[/code]