修改注释说明

This commit is contained in:
wind 2023-06-13 12:11:27 +08:00
parent 013e2a17f0
commit 4641e83d22
2 changed files with 9 additions and 8 deletions

View File

@ -315,7 +315,7 @@ public interface MailClient {
* @param mailAddress 收件人地址添加多个 * @param mailAddress 收件人地址添加多个
* @param title 邮件标题 * @param title 邮件标题
* @param body 邮件文本正文 * @param body 邮件文本正文
* @param html html模板的输入流 * @param html html模板的输入流这个流可以来自任何来源例如网络请求或是本地文件或者对象存储等
* @param parameter key为模板的变量名称 无需携带大括号 value为模板变量所对应的值 * @param parameter key为模板的变量名称 无需携带大括号 value为模板变量所对应的值
* @param files 附件可添加多个 key 为文件名value为文件的路径 * @param files 附件可添加多个 key 为文件名value为文件的路径
* @author :Wind * @author :Wind
@ -330,7 +330,7 @@ public interface MailClient {
* @param mailAddress 收件人地址添加多个 * @param mailAddress 收件人地址添加多个
* @param title 邮件标题 * @param title 邮件标题
* @param body 邮件文本正文 * @param body 邮件文本正文
* @param html html模板的输入流 * @param html html模板的输入流,这个流可以来自任何来源例如网络请求或是本地文件或者对象存储等
* @param parameter 字段名称为变量名称字段值为变量值 * @param parameter 字段名称为变量名称字段值为变量值
* @param files 附件可添加多个 key 为文件名value为文件的路径 * @param files 附件可添加多个 key 为文件名value为文件的路径
* @author :Wind * @author :Wind

View File

@ -51,7 +51,8 @@ public class MailBuild {
props.put("mail.smtp.port", config.getPort()); props.put("mail.smtp.port", config.getPort());
props.put("mail.smtp.ssl.enable", config.getIsSSL()); props.put("mail.smtp.ssl.enable", config.getIsSSL());
// props.put("mail.smtp.ssl.socketFactory", new MailSSLSocketFactory()); // props.put("mail.smtp.ssl.socketFactory", new MailSSLSocketFactory());
this.session = Session.getInstance(props, new Authenticator() { this.session = Session.getInstance(props,
new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() { protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(config.getUsername(), config.getPassword()); return new PasswordAuthentication(config.getUsername(), config.getPassword());
} }
@ -72,7 +73,7 @@ public class MailBuild {
/** /**
* eliminate * eliminate
* <p>过滤黑名单内容 * <p>过滤黑名单内容
* @param * @param source 需要过滤的源数据
* @author :Wind * @author :Wind
*/ */
public InternetAddress[] eliminate(List<String> source) { public InternetAddress[] eliminate(List<String> source) {