摘要:
1.引入maven依赖包 2.配置文件 不去邮箱配置授权码的话会报错: javax.mail.AuthenticationFailedException: 550 User has no permission出错邮箱开启pop3/smtp等协议,然后用授权码代替密码来模拟登陆就可以发送成功了! 3. 阅读全文
摘要:
String uuid=new RandomUUID().toString().trim().replace("-","")String exd=filePath.subString(filePath.lastIndexOf(".")+1,filePath.length)@Value("${uplo 阅读全文