原文:MailConnectException: Couldn't connect to host, port: smtp.163.com , 465; timeout -1;

在發送郵件的時候出現如下異常,查看properties各個配置都沒有問題。 spring.mail.port spring.mail.properties.mail.smtp.ssl.enable true 但沒想到問題竟然在此處發現: spring.mail.host smtp. .com properties此處中的末尾可能不小心加上了一個空格,導致出現未知的錯誤,修改之后恢復正常。 再此提醒 ...

2021-07-09 10:13 0 438 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM