当前位置:网站首页>Thymleaf template configuration analysis
Thymleaf template configuration analysis
2022-06-25 19:45:00 【A thousand miles of grass】
First we need to find out ThymeleafAutoConfiguration This kind of , Open and enter the following class 
Finally, you can see the contents of this class , There are application.properties Everything in the configuration , Defines the format, location and encoding format of all page files 
application.properties In the configuration, you can set :
# apply name
spring.application.name=thymeleaf
# THYMELEAF (ThymeleafAutoConfiguration)
# Enable template cache ( The default value is : true )
spring.thymeleaf.cache=true
# Check if the template exists , And then present
spring.thymeleaf.check-template=true
# Check whether the formwork position is correct ( The default value is :true )
spring.thymeleaf.check-template-location=true
#Content-Type Value ( The default value is : text/html )
spring.thymeleaf.content-type=text/html
# Turn on MVC Thymeleaf View resolution ( The default value is : true )
spring.thymeleaf.enabled=true
# Template encoding
spring.thymeleaf.encoding=UTF-8
# List of view names to be excluded from resolution ,⽤ Comma separated
spring.thymeleaf.excluded-view-names=
# To be lucky ⽤ Template mode above template . another ⻅ StandardTemplate-ModeHandlers( The default value is : HTML5)
spring.thymeleaf.mode=HTML5
# In the build URL Prefix before view name ( The default value is : classpath:/templates/ )
spring.thymeleaf.prefix=classpath:/templates/
# In the build URL The suffix after the view name ( The default value is : .html )
spring.thymeleaf.suffix=.html
# Application service WEB Access port
server.port=8080
边栏推荐
- Native JS array some method de duplication
- Why are life science enterprises on the cloud in succession?
- Tcp/ip test questions (I)
- Ali visual AI training camp -day03- construction of electronic photo album (face and expression recognition)
- Alicloud centos8.0 installing mysql8
- Applet password input box
- 1、 Hikaricp source code analysis of connection acquisition process I
- PHP database connection version1.1
- PHP Chinese regular
- 请问通达信开户安全吗?
猜你喜欢

Google cloud SSH enable root password login

Connecting PHP to MySQL instances in the lamp environment of alicloud's liunx system

Ali vision AI training camp-day01

Can GoogleSEO only do content without external chain? (e6zzseo)

Huawei released two promotion plans to promote AI talent development and scientific research innovation
![[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code](/img/ef/a26127284fe57ac049a4313d89cf97.png)
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code

Tiger Dao VC products are officially launched, a powerful supplement to seektiger ecology

Verification code native JS canvas

Automatic fitting when the applet reaches the top

最新數據挖掘賽事方案梳理!
随机推荐
PHP FPM, workman, spoole, golang simple performance test
Appearance of object attributes
Electronic package to generate EXE file
Using flex to implement the Holy Grail layout is as simple as that
Can the stock account opened through qiniu school be used? Is the fund safe?
rmi-registry-bind-deserialization
6、 Configuration resolution of hikariconfig
2020-12-09 laravel . Env file loading mechanism process
JS get data
Record Baidu search optimization thinking analysis
Randomly generate 100 non repeating numbers between 1 and 150 and put them in the array
Processing method for uniapp or applet onload not receiving parameters
Laravel validation rule followed Role of auth:: id()
QQ机器人疫情查询/疫情关注等【最新beta2版本】
Network security detection and prevention test questions (4)
Tcp/ip test questions (4)
Convert word to PDF through libreoffice
PHP synchronizes website content to hundreds of websites to improve SEO ranking
QQ robot official plug-in loading configuration method [beta2 version]
How to understand var = a = b = C = 9? How to pre parse?