运行连接到Neo4j的Grails应用程序时出错
Error initializing the application: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
Message: Error creating bean with name 'neo4jDatastore': FactoryBean threw exception on object creation; nested exception is com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused
运行嵌入式模式时一切正常。但是我想在休息模式下运行 所以我在Config.groovy中添加了以下内容:
dependencies {
compile "org.neo4j:neo4j-rest-graphdb:1.6"
}
和存储库:
mavenRepo 'http://m2.neo4j.org/releases'
在DataSource.groovy
我已添加:
grails {
neo4j {
type = "rest"
location = "http://localhost:7474/db/data/"
params = []
}
}
知道连接被拒绝的原因吗?