src/main/resources/application.yml
@@ -48,6 +48,26 @@ session-stat-max-count: 10 main: allow-circular-references: true #邮件配置 mail: # 配置 SMTP 服务器地址 host: smtp.qq.com # 发送者邮箱 username: 503*****@qq.com # 配置密码,注意不是真正的密码,而是刚刚申请到的授权码 password: apbpxb****bwtbiha # 端口号465或587 port: 587 # 默认的邮件编码为UTF-8 default-encoding: UTF-8 # 配置SSL 加密工厂 properties: mail: smtp: socketFactoryClass: javax.net.ssl.SSLSocketFactory #表示开启 DEBUG 模式,这样,邮件发送过程的日志会在控制台打印出来,方便排查错误 debug: true protocol: smtps # jackson: # date-format: yyyy-MM-dd HH:mm:ss