mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-23 09:49:01 +00:00
This commit our Neo4j OGM dependency with the Spring Data Neo4j snapshots that are currently included in snapshots of Spring Data Kay. It switches to using Neo4j's Bolt driver by default, aligning it with the default of the latest Spring Data Neo4j 5 snapshots. It also contains a workaround for a Neo4j OGM issue [1] and a change to Neo4jDataAutoConfigurationTests that prevents the entire classpath from being scanned. See gh-8687 [1] https://github.com/neo4j/neo4j-ogm/issues/340
= Spring Boot Neo4j Sample
This sample demonstrates the integration of Neo4j with a simple entity. It
expects a Neo4j instance running on `localhost`. If your neo4j instance
requires authentication, update `application.properties` with your credentials:
```
spring.data.neo4j.username=neo4j
spring.data.neo4j.password=secret
```
You can also locally add the embedded driver to embed Neo4j instead. Note
that Spring Boot does not provide dependency management for that GPL-licensed
library:
```
<dependency>
<groupId>org.neo4j</groupId>
<artifactId>neo4j-ogm-embedded-driver</artifactId>
<version>${neo4j-ogm.version}</version>
</dependency>
```