File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 3
3
4
4
Here are a couple of more frequently asked question in addition to the ones in the <<what-is-sdn,preface>>.
5
5
6
+ [[faq.change-driver-version]]
7
+ == Which Neo4j Java Driver can be used and how?
8
+
9
+ SDN6 relies on the Neo4j Java Driver version 4.x.
10
+ Each SDN6 release uses a Neo4j Java Driver version compatible with the latest Neo4j available at the time of its
11
+ release.
12
+ While patch versions of the Neo4j Java Driver are usually drop-in replacements, SDN6 makes sure that even minor versions
13
+ are interchangeable as it checks for the presence or absence of methods or interface changes if necessary.
14
+
15
+ Therefore, you are able to use any 4.x Neo4j Java Driver with any SDN6 6.x version.
16
+
17
+ === With Spring Boot
18
+
19
+ These days, a Spring boot deployment is the most likely deployment of a Spring Data based applications. Please use
20
+ Spring Boots dependency management to change the driver version like this:
21
+
22
+ .Change the driver version from Maven (pom.xml)
23
+ [source,xml]
24
+ ----
25
+ <properties>
26
+ <neo4j-java-driver.version>4.4.2</neo4j-java-driver.version>
27
+ </properties>
28
+ ----
29
+
30
+ Or
31
+
32
+ .Change the driver version from Gradle (gradle.properties)
33
+ [source,properties]
34
+ ----
35
+ neo4j-java-driver.version = 4.4.2
36
+ ----
37
+
38
+ === Without Spring Boot
39
+
40
+ Without Spring Boot, you would just manually declare the dependency. For Maven, we recommend using the `<dependencyManagement />`
41
+ section like this:
42
+
43
+ .Change the driver version without Spring Boot from Maven (pom.xml)
44
+ ----
45
+ <dependencyManagement>
46
+ <dependency>
47
+ <groupId>org.neo4j.driver</groupId>
48
+ <artifactId>neo4j-java-driver</artifactId>
49
+ <version>4.4.2</version>
50
+ </dependency>
51
+ </dependencyManagement>
52
+ ----
53
+
6
54
[[faq.multidatabase]]
7
55
== Neo4j 4.0 supports multiple databases - How can I use them?
8
56
You can’t perform that action at this time.
0 commit comments