Springboot 集成Neo4j完整版_全力奔跑,梦在彼岸-优快云博客
pom 配置:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-neo4j</artifactId>
</dependency>
yml配置:
spring:
neo4j:
# leader:ip1 follower:ip2 ,ip3
uri: bolt://ip1:7687
uris: bolt://ip2:7687,bolt://ip3:7687
username: neo4j
password:pro
这篇博客介绍了如何在Springboot项目中集成Neo4j数据库,包括在pom.xml中添加依赖,以及在application.yml文件中配置Neo4j的URI、用户名和密码。示例配置展示了多主机设置,确保高可用性。
3346

被折叠的 条评论
为什么被折叠?



