添加发送邮件相关功能

This commit is contained in:
刘倡
2025-05-16 16:39:42 +08:00
parent ce121a0b22
commit 9b35bad200
8 changed files with 230 additions and 2 deletions

View File

@ -76,7 +76,7 @@ spring:
redis:
sentinel:
master: mymaster
# nodes: 10.125.164.124:32718, 10.125.164.118:32716, 10.125.164.121:32716
# nodes: 10.60.161.59:26379, 10.60.161.59:26380, 10.60.161.59:26381
nodes: localhost:26379, localhost:26380, localhost:26381
password: pass
database:
@ -85,6 +85,30 @@ spring:
cache: 1
userinfo: 1
# 邮件配置
mail:
# host: smtp.126.com
# username: clc0820@126.com
# password: WGZnauWK9RXHYQcJ
host: mailtest.coscoshipping.com
username: bidding.test@coscoshipping.com
password: WBksH6GjtBBV7q6e
port: 465
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
starttls:
enable: true
# required: true
ssl:
enable: true
trust: mailtest.coscoshipping.com
# checkServerIdentity: false
socketFactory:
class: javax.net.ssl.SSLSocketFactory
mybatis-plus:
configuration:
# 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射