Skip to content

Commit 0f97ccf

Browse files
committed
Clarify dependency override instructions for Thymeleaf 3
Closes gh-7097
1 parent e9f43f3 commit 0f97ccf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1457,9 +1457,9 @@ have been applied from the auto-configuration:
14571457

14581458
[[howto-use-thymeleaf-3]]
14591459
=== Use Thymeleaf 3
1460-
By default, `spring-boot-starter-thymeleaf` uses Thymeleaf 2.1. You can use Thymeleaf
1461-
3 by overriding the `thymeleaf.version` and `thymeleaf-layout-dialect.version` properties,
1462-
for example:
1460+
By default, `spring-boot-starter-thymeleaf` uses Thymeleaf 2.1. If you are using the
1461+
`spring-boot-starter-parent`, you can use Thymeleaf 3 by overriding the
1462+
`thymeleaf.version` and `thymeleaf-layout-dialect.version` properties, for example:
14631463

14641464
[source,xml,indent=0,subs="verbatim,quotes,attributes"]
14651465
----
@@ -1469,6 +1469,9 @@ for example:
14691469
</dependency>
14701470
----
14711471

1472+
NOTE: if you are managing dependencies yourself, look at `spring-boot-dependencies` for
1473+
the list of artifacts that are related to those two versions.
1474+
14721475
To avoid a warning message about the HTML 5 template mode being deprecated and the HTML
14731476
template mode being used instead, you may also want to explicitly configure
14741477
`spring.thymeleaf.mode` to be `HTML`, for example:

0 commit comments

Comments
 (0)