JAVA全系列 教程
3762个小节阅读:7090.8k
目录
C语言快速入门
JAVA全系列 教程
面向对象的程序设计语言
Python全系列 教程
Python3.x版本,未来主流的版本
人工智能 教程
顺势而为,AI创新未来
大厂算法 教程
算法,程序员自我提升必经之路
C++ 教程
一门通用计算机编程语言
微服务 教程
目前业界流行的框架组合
web前端全系列 教程
通向WEB技术世界的钥匙
大数据全系列 教程
站在云端操控万千数据
AIGC全能工具班
A A
White Night
在Springboot配置文件中可以进行Thymeleaf相关配置
配置项 | 含义 |
---|---|
spring.thymeleaf.prefix | 视图前缀 |
spring.thymeleaf.suffix | 视图后缀 |
spring.thymeleaf.encoding | 编码格式 |
spring.thymeleaf.servlet.content-type | 响应类型 |
spring.thymeleaf.cache=false | 页面缓存,配置为false则不启用页面缓存,方便测试 |
xxxxxxxxxx
spring:
thymeleaf:
prefix: classpath:/templates/
suffix: .html
encoding: UTF-8
cache: false
servlet:
content-type: text/html
1. 在SpringBoot项目中使用Thymeleaf,视图前缀的配置为
A spring.thymeleaf.prefix
B spring.thymeleaf.suffix
C spring.thymeleaf.encoding
D spring.thymeleaf.servlet.content-type
2. 在SpringBoot项目中使用Thymeleaf,视图后缀的配置为
A spring.thymeleaf.prefix
B spring.thymeleaf.suffix
C spring.thymeleaf.encoding
D spring.thymeleaf.servlet.content-type
1=>A 2=>B