Browse Source

yml去掉多余配置文件

mashengyi 2 years ago
parent
commit
0f801c5c25
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/main/resources/application.yml

+ 11 - 0
src/main/resources/application.yml

@@ -105,6 +105,17 @@ spring:
       maxOpenPreparedStatements: 20
       # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
       connectionProperties: druid.stat.slowSqlMillis=200;druid.stat.logSlowSql=true;config.decrypt=false
+  mail:
+        host: smtp.qq.com #邮件发送服务器
+        port: 587
+        username: 862885632@qq.com
+        password: axlmfkdxmixjbchh
+        test-connection: true #测试连接
+        properties:
+          mail:
+            smtp:
+              auth: true
+              enable: true
   redis:
     host: 127.0.0.1
     port: 6379