From 39fe376aaf43f0b89ffcc3956cd179460f5115bc Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Fri, 15 Apr 2022 17:46:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=A4=96=E7=BD=91?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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