引起原因是yml中配置的邮箱地址和代码中message.setFrom(xx@xx.com)不一致导致; 具体配置查看:https://blog.csdn.net/qq_34287953/article/details/115671687