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