Recommend setting spring.thymeleaf.mode: HTML when using Thymeleaf 3
Closes gh-6552
This commit is contained in:
parent
38e3b36605
commit
1b42e1aaa3
|
@ -1414,6 +1414,15 @@ for example:
|
|||
</dependency>
|
||||
----
|
||||
|
||||
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 explicity configure
|
||||
`spring.thymeleaf.mode` to be `HTML`, for example:
|
||||
|
||||
[source,properties,indent=0,subs="verbatim,quotes,attributes"]
|
||||
----
|
||||
spring.thymeleaf.mode: HTML
|
||||
----
|
||||
|
||||
Please refer to the
|
||||
{github-code}/spring-boot-samples/spring-boot-sample-web-thymeleaf3[Thymeleaf 3 sample] to
|
||||
see this in action.
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
# Allow Thymeleaf templates to be reloaded at dev time
|
||||
spring.thymeleaf.cache: false
|
||||
spring.thymeleaf.mode: html
|
||||
|
|
Loading…
Reference in New Issue