[英]Spring data neo4j embedded remote shell connection not allowed
I am trying to connect embedded server but always getting 我正在尝试连接嵌入式服务器,但总是
Caused by: java.io.IOException: Unable to lock org.neo4j.kernel.impl.nioneo.store.StoreFileChannel@5ceccc52
This is my configuration file. 这是我的配置文件。
@Configuration
@EnableNeo4jRepositories
public class Neo4jConfig extends Neo4jConfiguration {
public static final Setting<Boolean> remote_shell_enabled = Settings.setting("remote_shell_enabled", Settings.BOOLEAN, Settings.TRUE);
public static final Setting<Boolean> enable_remote_shell = Settings.setting("enable_remote_shell", Settings.BOOLEAN, Settings.TRUE);
public Neo4jConfig() {
setBasePackage("com.repo", "com.model");
}
@Bean
GraphDatabaseService graphDatabaseService() {
return new GraphDatabaseFactory()
.newEmbeddedDatabaseBuilder("neo.db2")
.setConfig(enable_remote_shell, "true")
.newGraphDatabase();
}
}
How are you trying to connect the shell? 您如何尝试连接外壳?
Just do: 做就是了:
bin/neo4j-shell
No -path
parameter !! 没有
-path
参数! As then you would start a new database on the same directory. 然后,您将在同一目录上启动一个新数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.