From ade79f7ded965d469f9ec2241917876467b00a92 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 21 Sep 2018 16:07:06 +0100 Subject: [PATCH] Fix duplicate section ID in the docs --- .../main/asciidoc/spring-boot-features.adoc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index 1c02abc2c52..f94a7a6480f 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -4296,19 +4296,19 @@ You can take full control over the session creation by adding a ==== Using the Embedded Mode If you add `org.neo4j:neo4j-ogm-embedded-driver` to the dependencies of your application, Spring Boot automatically configures an in-process embedded instance of Neo4j that does -not persist any data when your application shuts down. +not persist any data when your application shuts down. [NOTE] ==== -As the embedded Neo4j OGM driver does not provide the Neo4j kernel itself, you have -to declare `org.neo4j:neo4j` as dependency yourself. Refer to +As the embedded Neo4j OGM driver does not provide the Neo4j kernel itself, you have +to declare `org.neo4j:neo4j` as dependency yourself. Refer to https://neo4j.com/docs/ogm-manual/current/reference/#reference:getting-started[the Neo4j OGM documentation] for a list of compatible versions. ==== The embedded driver takes precedence over the other drivers when there are multiple -drivers on the classpath. You can explicitly disable the embedded mode by setting -`spring.data.neo4j.embedded.enabled=false`. +drivers on the classpath. You can explicitly disable the embedded mode by setting +`spring.data.neo4j.embedded.enabled=false`. <> automatically make use of an embedded Neo4j instance if the embedded driver and Neo4j @@ -4316,7 +4316,7 @@ kernel are on the classpath as described above. [NOTE] ==== -You can enable persistence for the embedded mode by providing a path to a database file +You can enable persistence for the embedded mode by providing a path to a database file in your configuration, e.g. `spring.data.neo4j.uri=file://var/tmp/graph.db`. ==== @@ -4360,9 +4360,9 @@ abstraction works in the same way, as shown in the following example: } ---- -The `spring-boot-starter-data-neo4j` "`Starter`" enables the repository support as well +The `spring-boot-starter-data-neo4j` "`Starter`" enables the repository support as well as transaction management. You can customize the locations to look for repositories and -entities by using `@EnableNeo4jRepositories` and `@EntityScan` respectively on a +entities by using `@EnableNeo4jRepositories` and `@EntityScan` respectively on a `@Configuration`-bean. TIP: For complete details of Spring Data Neo4j, including its object mapping @@ -7159,7 +7159,7 @@ If you prefer your test to run against a real database, you can use the -[[boot-features-testing-spring-boot-applications-testing-autoconfigured-jdbc-test]] +[[boot-features-testing-spring-boot-applications-testing-autoconfigured-data-jdbc-test]] ==== Auto-configured Data JDBC Tests `@DataJdbcTest` is similar to `@JdbcTest` but is for tests that use Spring Data JDBC repositories. By default, it configures an in-memory embedded database, a `JdbcTemplate`,