mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
style: 整理注释中的代码。
This commit is contained in:
parent
a06bd2c27d
commit
7289291173
@ -82,7 +82,7 @@ public class HttpUtil {
|
|||||||
private static SSLSocketFactory initSSLSocketFactory() {
|
private static SSLSocketFactory initSSLSocketFactory() {
|
||||||
try {
|
try {
|
||||||
TrustManager[] tm = {new HttpUtil.TrustAnyTrustManager()};
|
TrustManager[] tm = {new HttpUtil.TrustAnyTrustManager()};
|
||||||
SSLContext sslContext = SSLContext.getInstance("TLS"); // ("TLS", "SunJSSE");
|
SSLContext sslContext = SSLContext.getInstance("TLS"); // "TLS", "SunJSSE"
|
||||||
sslContext.init(null, tm, new java.security.SecureRandom());
|
sslContext.init(null, tm, new java.security.SecureRandom());
|
||||||
return sslContext.getSocketFactory();
|
return sslContext.getSocketFactory();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@ -107,7 +107,7 @@ public class MybatisKeyGeneratorUtil {
|
|||||||
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去,其实是完全没必要的
|
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去,其实是完全没必要的
|
||||||
//因为只有在 xml 解析的时候,才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
|
//因为只有在 xml 解析的时候,才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
|
||||||
//当前每个方法都拥有一个自己的 keyGenerator 了,没必要添加
|
//当前每个方法都拥有一个自己的 keyGenerator 了,没必要添加
|
||||||
//this.addKeyGenerator(selectId, keyGenerator);
|
//addKeyGenerator(selectId, keyGenerator)
|
||||||
return new SelectKeyGenerator(keyMappedStatement, isKeyBefore(idInfo, globalKeyConfig));
|
return new SelectKeyGenerator(keyMappedStatement, isKeyBefore(idInfo, globalKeyConfig));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
/**
|
/*
|
||||||
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
* Copyright (c) 2022-2023, Mybatis-Flex (fuhai999@gmail.com).
|
||||||
* <p>
|
* <p>
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@ -128,7 +128,7 @@ public class RowKeyGenerator implements KeyGenerator, IMultiKeyGenerator {
|
|||||||
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去,其实是完全没必要的
|
//看到有的框架把 keyGenerator 添加到 mybatis 的当前配置里去,其实是完全没必要的
|
||||||
//因为只有在 xml 解析的时候,才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
|
//因为只有在 xml 解析的时候,才可能存在多一个 MappedStatement 拥有同一个 keyGenerator 的情况
|
||||||
//当前每个方法都拥有一个自己的 keyGenerator 了,没必要添加
|
//当前每个方法都拥有一个自己的 keyGenerator 了,没必要添加
|
||||||
//this.addKeyGenerator(selectId, keyGenerator);
|
//addKeyGenerator(selectId, keyGenerator)
|
||||||
return new SelectKeyGenerator(keyMappedStatement, rowKey.isBefore());
|
return new SelectKeyGenerator(keyMappedStatement, rowKey.isBefore());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -92,8 +92,8 @@ public class UpdateEntity {
|
|||||||
if (value != null) {
|
if (value != null) {
|
||||||
reflector.getSetInvoker(propertyName).invoke(newEntity, new Object[]{value});
|
reflector.getSetInvoker(propertyName).invoke(newEntity, new Object[]{value});
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception ignored) {
|
||||||
//ignore;
|
// do nothing here.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user