[script]thymeleaf模版缓存

This commit is contained in:
tomsun28
2022-02-27 08:58:34 +08:00
parent cdc5edf72b
commit c954b930ce
2 changed files with 13 additions and 4 deletions

View File

@@ -53,9 +53,9 @@ spring:
debug: false
thymeleaf:
prefix: classpath:/templates/ #prefix指定模板所在的目录
check-template-location: true #check-tempate-location: 检查模板路径是否存在
cache: false #cache: 是否缓存开发模式下设置为false避免改了模板还要重启服务器线上设置为true可以提高性能。
prefix: classpath:/templates/
check-template-location: true
cache: true
suffix: .html
#encoding: UTF-8
#content-type: text/html