Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
1b42e1aa
Commit
1b42e1aa
authored
Aug 08, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recommend setting spring.thymeleaf.mode: HTML when using Thymeleaf 3
Closes gh-6552
parent
38e3b366
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
howto.adoc
spring-boot-docs/src/main/asciidoc/howto.adoc
+9
-0
application.properties
...-web-thymeleaf3/src/main/resources/application.properties
+1
-0
No files found.
spring-boot-docs/src/main/asciidoc/howto.adoc
View file @
1b42e1aa
...
...
@@ -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.
...
...
spring-boot-samples/spring-boot-sample-web-thymeleaf3/src/main/resources/application.properties
View file @
1b42e1aa
# Allow Thymeleaf templates to be reloaded at dev time
spring.thymeleaf.cache
:
false
spring.thymeleaf.mode
:
html
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment