diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 7dac270..75d1763 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -25,6 +25,24 @@ spring: multipart: max-file-size: 1GB max-request-size: 1GB + mail: + # 配置 SMTP 服务器地址 + host: smtp.163.com + # 发送者邮箱 + username: gotowuyuan@163.com + # 配置密码,注意不是真正的密码,而是刚刚申请到的授权码 + password: OIFUJJYQKGRFPADX + # 端口号465或587 + port: 25 + # 默认的邮件编码为UTF-8 + default-encoding: UTF-8 + # 配置SSL 加密工厂 + properties: + mail: + smtp: + socketFactoryClass: javax.net.ssl.SSLSocketFactory + #表示开启 DEBUG 模式,这样,邮件发送过程的日志会在控制台打印出来,方便排查错误 + debug: false datasource: druid: url: jdbc:mysql://192.168.158.18:3306/db_smart_city_house?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8&autoReconnect=true&failOverReadOnly=false&useSSL=false&serverTimezone=UTC&nullCatalogMeansCurrent=true