File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -28,9 +28,12 @@ Neo4jItemWriter<User> writer = new Neo4jItemWriterBuilder<User>()
28
28
29
29
## Minimal Spring Boot example
30
30
31
- With a Spring Boot application containing the additional dependencies ` spring-boot-starter-neo4j ` and ` spring-batch-neo4j ` ,
32
- the following _ build.gradle_ dependency definition is the minimal needed.
33
- Please note the exclusion for Spring JDBC from the ` spring-boot-starter-batch ` to avoid any need for JDBC-based connections.
31
+ Additional to the already existing dependencies in a new Spring Boot application,
32
+ ` spring-boot-starter-data-neo4j ` , ` spring-batch-neo4j ` and the ` spring-boot-starter-batch ` are needed
33
+ but ` spring-jdbc ` and ` spring-boot-starter-jdbc ` must be explicitly excluded.
34
+ The exclusions are mandatory to avoid any need for JDBC-based connections, like JDBC URI etc.
35
+
36
+ See the following _ build.gradle_ dependency definition for a minimal example.
34
37
35
38
``` groovy
36
39
dependencies {
@@ -46,6 +49,8 @@ dependencies {
46
49
}
47
50
```
48
51
52
+ An example of the usage can be seen in the following example, implementing the ` CommandLineRunner ` interface.
53
+
49
54
``` java
50
55
@SpringBootApplication
51
56
public class TestSpringBatchApplication implements CommandLineRunner {
You can’t perform that action at this time.
0 commit comments