格式化

This commit is contained in:
redkale
2024-09-07 12:48:11 +08:00
parent 2c25cc9f27
commit 426e8e463a
2 changed files with 4 additions and 3 deletions

View File

@@ -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('?');

View File

@@ -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";