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 2d2a395d..c660f5bb 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