我從Spring Boot中得到這個錯誤。我怎樣才能使用彈簧啓動/數據Neo4j螺栓驅動器
Could not deduce driver to use based on URI 'bolt://localhost:7687
試圖與性能配置,或env中時可變
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 +彈簧啓動(雖然使用Groovy),所以看起來像它的支持。 https://github.com/neo4j-examples/neo4j-ogm-university/tree/2.0 –
@ icyrock.com https://github.com/neo4j-examples/neo4j-ogm-university/blob/2.0/src/ main/resources/ogm.properties看起來像是使用http,它們不是彈簧引導屬性,但它可能是一種方法來做到這一點 – xenoterracide