From a38c15005e048915eda6f0d5390d210e917eda8f Mon Sep 17 00:00:00 2001 From: xupei Date: Tue, 25 Mar 2025 11:45:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=82=AE=E4=BB=B6=E7=9B=B8=E5=85=B3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 11 ++++++++++ src/main/resources/application-dev.properties | 22 ++++++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index db7bdb0b..f781cd68 100644 --- a/pom.xml +++ b/pom.xml @@ -316,6 +316,17 @@ 1.41.5 + + + + org.springframework.boot + spring-boot-starter-thymeleaf + + + org.springframework.boot + spring-boot-starter-mail + + diff --git a/src/main/resources/application-dev.properties b/src/main/resources/application-dev.properties index a45b62e2..d129aa4d 100644 --- a/src/main/resources/application-dev.properties +++ b/src/main/resources/application-dev.properties @@ -113,4 +113,24 @@ orderList.link=https://develop.aida.com.hk/home/homePage?order= # 0 不发送邮件通知 1 发送邮件通知 stripe.webhook.fail.reminder=0 # kim test -stripe.paymentMethodConfiguration=pmc_1LywTWH7nPZ8bkrN6FvdCUWG \ No newline at end of file +stripe.paymentMethodConfiguration=pmc_1LywTWH7nPZ8bkrN6FvdCUWG + +#thymelea模板配置 +#控制 Thymeleaf 是否启用模板缓存 生产环境用true,以提高性能 +spring.thymeleaf.cache=false + +#指定邮件服务器的地址。 +spring.mail.host=mail.aida.com.hk +#指定邮件服务器的端口号。 +spring.mail.port=465 +#指定登录邮件服务器的用户名 +spring.mail.username=info@aida.com.hk +#指定登录邮件服务器的密码 / 授权码 +spring.mail.password=AIdlab@2025 +spring.mail.default-encoding=UTF-8 + +# SSL 配置 +#启用 SSL 加密 +spring.mail.properties.mail.smtp.ssl.enable=true +#指定 SSL 连接的端口号。通常与 spring.mail.port 一致 +spring.mail.properties.mail.smtp.socketFactory.port=465 \ No newline at end of file