Springboot整合Neo4J图数据库

1.引入依赖

JDK11,
neo4J4.4.23

<parent>
	<groupId>org.springframework.bootgroupId>
	<artifactId>spring-boot-starter-parentartifactId>
	<version>2.7.15version>
	<relativePath/> 
parent>
<dependency>
   <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-data-neo4jartifactId>
dependency>

2.解决springboot与neo4j兼容问题

<dependency>
   <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-starter-data-neo4jartifactId>
    <exclusions>
        <exclusion>
            <artifactId>neo4j-java-driverartifactId>
            <groupId>org.neo4j.drivergroupId>
        exclusion>
    exclusions>
dependency>
<dependency>
    <groupId>org.neo4j.drivergroupId>
    <artifactId>neo4j-java-driverartifactId>
    <version>4.4.5version>
dependency>

你可能感兴趣的:(SpringBoot,neo4j,spring,boot,neo4j,数据库)