云服务器中SpringBoot项目邮件的配置 2020-03-14 00:57 spring: mail: port: 465 protocol: smtp default-encoding: UTF-8 test-connection: false properties: mail: smtp: auth: true starttls: enable: true required: true ssl: enable: true socketFactory: class: com.fintech.modules.base.util.mail.MailSSLSocketFactory imap: ssl: socketFactory: fallback: false (上述使用SpringBoot2.2.2版本) 阿里云服务器不开放邮件所使用的25端口,所以要改为其他端口,并且要开启SSL配置 --END--
发表评论