This commit is contained in:
Looly 2022-03-19 21:36:45 +08:00
parent 20794884a7
commit b1b80730e4
2 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,11 @@ public class ValueProviderToBeanCopier<T> extends AbsCopier<ValueProvider<String
return;
}
// 无字段内容跳过
if(false == source.containsKey(tFieldName)){
return;
}
// 检查目标字段可写性
if (null == tDesc || false == tDesc.isWritable(this.copyOptions.transientSupport)) {
// 字段不可写跳过之

View File

@ -1,5 +1,6 @@
package cn.hutool.extra.mail;
import cn.hutool.core.lang.Console;
import cn.hutool.core.util.CharsetUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
@ -578,6 +579,7 @@ public class MailAccount implements Serializable {
// SSL
if (null != this.sslEnable && this.sslEnable) {
Console.log("{} {}", SOCKET_FACTORY, socketFactoryClass);
p.put(SSL_ENABLE, "true");
p.put(SOCKET_FACTORY, socketFactoryClass);
p.put(SOCKET_FACTORY_FALLBACK, String.valueOf(this.socketFactoryFallback));