当前位置:网站首页>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
边栏推荐
- Force wechat page font size to be 100%
- Tcp/ip test questions (I)
- Can the stock account opened through qiniu school be used? Is the fund safe?
- Gbpnzd firm offer for 14 months, simulation for 19 months, test stable
- Case: count the most characters and times
- Ali vision AI training camp-day01
- Can GoogleSEO only do content without external chain? (e6zzseo)
- Convert word to PDF through libreoffice
- On Oracle full stack virtual machine -- graalvm
- How to quickly close port 8080
猜你喜欢

削足适履 - 谈谈赛道上的坡道改造

Sorting out the latest data mining competition scheme!

Ali visual AI training camp -day03- construction of electronic photo album (face and expression recognition)

2020-12-09 laravel . Env file loading mechanism process

Applet canvas generate sharing Poster

Vulnhub range - the planes:venus

Process of vacuum and vacuum full

Why are life science enterprises on the cloud in succession?

New features of php7

The native JS mobile phone sends SMS cases. After clicking the button, the mobile phone number verification code is sent. The button needs to be disabled and re enabled after 60 seconds
随机推荐
Redis cache preheating & avalanche & breakdown & penetration
6、 Configuration resolution of hikariconfig
Miner's Diary: why should I go mining on April 5, 2021
Applet Click to return to the top 2 methods
Does GoogleSEO need to change the friend chain? (e6zzseo)
谈谈CNN中的位置和尺度问题
One night I worked as an XPath Terminator: XPath Helper Plus
Vulnhub range the planes: mercury
Randomly generate 100 non repeating numbers between 1 and 150 and put them in the array
[today in history] June 25: the father of notebook was born; Windows 98 release; First commercial use of generic product code
MySQL view explanation
PostgreSQL user role permissions
What are Baidu collection skills? 2022 Baidu article collection skills
What should I pay attention to in GoogleSEO content station optimization?
Vscode debugging PHP configuration Xdebug
Record Baidu search optimization thinking analysis
Automatic fitting when the applet reaches the top
Vulnhub range the planes:earth
Guangzhou Sinovel interactive creates VR Exhibition Hall panoramic online virtual exhibition hall
SEO outsourcing reliable company, enterprise SEO outsourcing company which reliable?