【发布时间】:2016-12-26 02:29:57
【问题描述】:
我从 Spring Boot 收到此错误。
Could not deduce driver to use based on URI 'bolt://localhost:7687
尝试使用属性或环境变量进行配置时
spring.data.neo4j.uri=bolt://localhost:7687
我确实添加了驱动程序
<dependency>
<scope>runtime</scope>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-bolt-driver</artifactId>
<version>${neo4j-ogm.version}</version>
</dependency>
我imagine spring boot doesn't support autoconfiguration for this yet
如何手动设置此驱动程序以使用 Spring Boot / Data?请举个例子。
【问题讨论】:
-
这个应用程序似乎显示了 neo4j-ogm + spring boot(虽然使用了 Groovy),所以看起来它是受支持的。 github.com/neo4j-examples/neo4j-ogm-university/tree/2.0
-
@icyrock.com github.com/neo4j-examples/neo4j-ogm-university/blob/2.0/src/… 看起来它正在使用 http 并且这些不是 Spring Boot 属性,但这可能是一种方法
标签: java spring-boot neo4j spring-data spring-data-neo4j-4