格式化

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) { if (pos > 0) {
url = url.substring(0, pos) + "..."; url = url.substring(0, pos) + "...";
} }
String nb = clientNonBlocking ? (", " + DATA_SOURCE_NON_BLOCKING + "=true") : "";
return getClass().getSimpleName() + "{url=" + url + ", maxconns=" + readMaxConns() + ", dbtype=" + dbtype() return getClass().getSimpleName() + "{url=" + url + ", maxconns=" + readMaxConns() + ", dbtype=" + dbtype()
+ ", " + DATA_SOURCE_TABLE_AUTODDL + "=" + autoDDL + executorToString() + "}"; + nb + ", " + DATA_SOURCE_TABLE_AUTODDL + "=" + autoDDL + executorToString() + "}";
} else { } else {
String readUrl = readConfProps.getProperty(DATA_SOURCE_URL); String readUrl = readConfProps.getProperty(DATA_SOURCE_URL);
int pos = readUrl.indexOf('?'); int pos = readUrl.indexOf('?');