当前位置:网站首页>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
边栏推荐
- Ali vision AI training camp-day01
- Error record: preg_ match(): Compilation failed: range out of order in character class at offset 13
- System optimization method
- Solidity contract address to wallet, wallet address to contract
- Web components - Basics
- Solidity date tool
- Network security detection and prevention test questions (4)
- Yum command
- The functions in the applet page are better than those in app JS first execution solution
- JVM | runtime data area (heap space)
猜你喜欢
![[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

PostgreSQL user role permissions

New features of php7

最新数据挖掘赛事方案梳理!

Kotlin Compose 终结toDo项目 点击可以编辑修改todo

Determine whether it is a web page opened on wechat

JVM | runtime data area (heap space)

Ali visual AI training camp -day05- creativity day - your image recognition project

Server journey from scratch - Yu Zhongxian integrated version (IP access server, LNMP compilation and installation, Lua environment and socket expansion)

ActiveMQ--CVE-2016-3088
随机推荐
Applet Click to return to the top 2 methods
Uncover ges super large scale graph computing engine hyg: Graph Segmentation
Using flex to implement the Holy Grail layout is as simple as that
What should I pay attention to in GoogleSEO content station optimization?
PHP Chinese regular
1、 Hikaricp source code analysis of connection acquisition process I
Network security detection and prevention test questions (V)
六、HikariConfig的配置解析
Network security detection and prevention exercises (III)
谈谈CNN中的位置和尺度问题
Validation of TTF font by validator of laravel
Uniapp waterfall flow, applet waterfall flow, very simple, suitable for the whole platform
Leetcode-78-subset
Apifox simple understanding -- the integrator of web side testing
Verification code native JS canvas
Why are life science enterprises on the cloud in succession?
JQ implements tab switching
PHP little knowledge record
MySQL transaction explanation
云上弹性高性能计算,支持生命科学产业高速发展、降本增效