From 0f97ccf2fa9e12ca2b074407720cf329d6fe5b2d Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Thu, 6 Oct 2016 11:21:24 +0200 Subject: [PATCH] Clarify dependency override instructions for Thymeleaf 3 Closes gh-7097 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 826e08e8ff..44e69db2b2 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1457,9 +1457,9 @@ have been applied from the auto-configuration: [[howto-use-thymeleaf-3]] === Use Thymeleaf 3 -By default, `spring-boot-starter-thymeleaf` uses Thymeleaf 2.1. You can use Thymeleaf -3 by overriding the `thymeleaf.version` and `thymeleaf-layout-dialect.version` properties, -for example: +By default, `spring-boot-starter-thymeleaf` uses Thymeleaf 2.1. If you are using the +`spring-boot-starter-parent`, you can use Thymeleaf 3 by overriding the +`thymeleaf.version` and `thymeleaf-layout-dialect.version` properties, for example: [source,xml,indent=0,subs="verbatim,quotes,attributes"] ---- @@ -1469,6 +1469,9 @@ for example: ---- +NOTE: if you are managing dependencies yourself, look at `spring-boot-dependencies` for +the list of artifacts that are related to those two versions. + To avoid a warning message about the HTML 5 template mode being deprecated and the HTML template mode being used instead, you may also want to explicitly configure `spring.thymeleaf.mode` to be `HTML`, for example: