格式化
This commit is contained in:
@@ -483,8 +483,9 @@ public abstract class AbstractDataSqlSource extends AbstractDataSource
|
||||
if (pos > 0) {
|
||||
url = url.substring(0, pos) + "...";
|
||||
}
|
||||
String nb = clientNonBlocking ? (", " + DATA_SOURCE_NON_BLOCKING + "=true") : "";
|
||||
return getClass().getSimpleName() + "{url=" + url + ", maxconns=" + readMaxConns() + ", dbtype=" + dbtype()
|
||||
+ ", " + DATA_SOURCE_TABLE_AUTODDL + "=" + autoDDL + executorToString() + "}";
|
||||
+ nb + ", " + DATA_SOURCE_TABLE_AUTODDL + "=" + autoDDL + executorToString() + "}";
|
||||
} else {
|
||||
String readUrl = readConfProps.getProperty(DATA_SOURCE_URL);
|
||||
int pos = readUrl.indexOf('?');
|
||||
|
||||
@@ -62,10 +62,10 @@ public final class DataSources {
|
||||
|
||||
// @since 2.8.0 //超过多少毫秒视为较慢, 会打印警告级别的日志, 默认值: 3000
|
||||
public static final String DATA_SOURCE_SLOWMS_ERROR = "error-slowms";
|
||||
|
||||
|
||||
// @since 2.8.0 //是否非阻塞式
|
||||
public static final String DATA_SOURCE_NON_BLOCKING = "non-blocking";
|
||||
|
||||
|
||||
// @since 2.8.0 //sourceExecutor线程数, 默认值: 内核数
|
||||
public static final String DATA_SOURCE_THREADS = "threads";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user