Provide autoconfiguration for an instance of Driver.
This commit adds Spring Boot autoconfiguration for an instance of Neo4j Java-Driver. It exposes all non-deprecated properties as Spring Boot configuration properties along with an excerpt of their docs. The configuration supports both uri and uris, but highly recommends using only one single URI. In the process of making the examples more accessible, a separate project hast been added for demoing Spring Boot integration and the existing example project has been moved into a common parent.
This commit is contained in:
13
README.adoc
13
README.adoc
@@ -51,7 +51,8 @@ Integration tests will get executed withing the `verify` goal and their class na
|
||||
Spring Data Neo4j RX takes a "ready to use" drivers instance and uses that.
|
||||
We won't provide any additional configuration for aspects that are configurable through the driver.
|
||||
We will however provide support to configure the drivers instance in Spring Boot.
|
||||
The current Spring Boot Starter only configures the Neo4j-OGM transport and not the "real" driver.
|
||||
The current SDN Spring Boot Starter only configures the Neo4j-OGM transport and not the "real" driver.
|
||||
Our plans for a future starter a have been <<starter,described separately>>.
|
||||
|
||||
Closing the driver is not the the concern of Spring Data Neo4j RX.
|
||||
The lifecycle of that bean should be managed by the application.
|
||||
@@ -184,3 +185,13 @@ This is a wrapper around the `java.lang.reflect.Method` passed into the `resolve
|
||||
|
||||
At the moment the implementation just takes the value of the provided `@Query` annotation by calling `getAnnotatedQuery` on the `Neo4jQueryMethod`
|
||||
and executes it through the `neo4jOperations` (`Neo4jTemplate`) class.
|
||||
|
||||
[[starter]]
|
||||
== Spring Boot Starter
|
||||
|
||||
The Spring Data Neo4j RX Spring Boot Starter provides automatic configuration to
|
||||
|
||||
* Create an instance of the https://github.com/neo4j/neo4j-java-driver[neo4j-java-driver]
|
||||
* Configure Spring Data Neo4j RX itself inside a Spring Boot application and enabling Spring Data repositories
|
||||
|
||||
Read me about it link:spring-data-neo4j-rx-spring-boot-starter-parent/README.adoc[here].
|
||||
4
pom.xml
4
pom.xml
@@ -74,7 +74,7 @@
|
||||
<modules>
|
||||
<module>spring-data-neo4j-rx</module>
|
||||
<module>spring-data-neo4j-rx-spring-boot-starter-parent</module>
|
||||
<module>spring-data-neo4j-rx-examples</module>
|
||||
<module>spring-data-neo4j-rx-examples-parent</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
@@ -136,8 +136,8 @@
|
||||
<groupId>org.junit</groupId>
|
||||
<artifactId>junit-bom</artifactId>
|
||||
<version>${junit-jupiter.version}</version>
|
||||
<scope>import</scope>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testcontainers</groupId>
|
||||
|
||||
Reference in New Issue
Block a user