mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
MailAccount增加自定义参数支持
This commit is contained in:
@@ -156,6 +156,13 @@ public class MailAccount implements Serializable {
|
||||
*/
|
||||
public MailAccount(Setting setting) {
|
||||
setting.toBean(this);
|
||||
|
||||
// since 5.8.30, custom property
|
||||
setting.forEach((key, value) -> {
|
||||
if (StrUtil.startWith(key, "mail.")) {
|
||||
this.setCustomProperty(key, value);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------- Constructor end
|
||||
|
Reference in New Issue
Block a user