From caa9cdcc02d4fe08ff7c6692246990fca55a1724 Mon Sep 17 00:00:00 2001 From: Vedran Pavic Date: Mon, 16 Jan 2017 00:46:54 +0100 Subject: [PATCH] Fix Neo4j session documentation Closes gh-7994 --- .../src/main/asciidoc/spring-boot-features.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc index f65e7102921..6089673ea6c 100644 --- a/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc @@ -3495,13 +3495,13 @@ persistence for the embedded mode: [[boot-features-neo4j-ogm-session]] ==== Neo4jSession -By default, the lifetime of the session is scoped to the application. If you are running a -web application, you can change it so that the session is bound to the thread for the -entire processing of the request (i.e. the "Open Session in View" pattern): +By default, if you are running a web application, the session is bound to the thread for +the entire processing of the request (i.e. the "Open Session in View" pattern). If you +don't want this behavior add the following to your `application.properties`: ---- - spring.data.neo4j.open-in-view=true + spring.data.neo4j.open-in-view=false ----