[script]thymeleaf模版缓存
This commit is contained in:
@@ -53,9 +53,9 @@ spring:
|
|||||||
debug: false
|
debug: false
|
||||||
|
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
prefix: classpath:/templates/ #prefix:指定模板所在的目录
|
prefix: classpath:/templates/
|
||||||
check-template-location: true #check-tempate-location: 检查模板路径是否存在
|
check-template-location: true
|
||||||
cache: false #cache: 是否缓存,开发模式下设置为false,避免改了模板还要重启服务器,线上设置为true,可以提高性能。
|
cache: true
|
||||||
suffix: .html
|
suffix: .html
|
||||||
#encoding: UTF-8
|
#encoding: UTF-8
|
||||||
#content-type: text/html
|
#content-type: text/html
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ spring:
|
|||||||
host: smtp.exmail.qq.com
|
host: smtp.exmail.qq.com
|
||||||
username: example@qq.com
|
username: example@qq.com
|
||||||
# 请注意此非邮箱账户密码 此需填写邮箱授权码
|
# 请注意此非邮箱账户密码 此需填写邮箱授权码
|
||||||
password: woshigongchao123
|
password: example
|
||||||
port: 465
|
port: 465
|
||||||
default-encoding: UTF-8
|
default-encoding: UTF-8
|
||||||
properties:
|
properties:
|
||||||
@@ -51,6 +51,15 @@ spring:
|
|||||||
ssl:
|
ssl:
|
||||||
enable: true
|
enable: true
|
||||||
|
|
||||||
|
thymeleaf:
|
||||||
|
prefix: classpath:/templates/
|
||||||
|
check-template-location: true
|
||||||
|
cache: true
|
||||||
|
suffix: .html
|
||||||
|
#encoding: UTF-8
|
||||||
|
#content-type: text/html
|
||||||
|
mode: LEGACYHTML5
|
||||||
|
|
||||||
warehouse:
|
warehouse:
|
||||||
store:
|
store:
|
||||||
td-engine:
|
td-engine:
|
||||||
|
|||||||
Reference in New Issue
Block a user