From c954b930ced22901cda76fab8b7bfa919a155100 Mon Sep 17 00:00:00 2001 From: tomsun28 Date: Sun, 27 Feb 2022 08:58:34 +0800 Subject: [PATCH] =?UTF-8?q?[script]thymeleaf=E6=A8=A1=E7=89=88=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/main/resources/application.yml | 6 +++--- script/application.yml | 11 ++++++++++- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/manager/src/main/resources/application.yml b/manager/src/main/resources/application.yml index 0bd0c37..da36917 100644 --- a/manager/src/main/resources/application.yml +++ b/manager/src/main/resources/application.yml @@ -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 diff --git a/script/application.yml b/script/application.yml index e2a7468..cedb215 100644 --- a/script/application.yml +++ b/script/application.yml @@ -41,7 +41,7 @@ spring: host: smtp.exmail.qq.com username: example@qq.com # 请注意此非邮箱账户密码 此需填写邮箱授权码 - password: woshigongchao123 + password: example port: 465 default-encoding: UTF-8 properties: @@ -51,6 +51,15 @@ spring: ssl: enable: true + thymeleaf: + prefix: classpath:/templates/ + check-template-location: true + cache: true + suffix: .html + #encoding: UTF-8 + #content-type: text/html + mode: LEGACYHTML5 + warehouse: store: td-engine: