Skip to content

Commit f491b68

Browse files
committed
Java:MultiDataSource 中 SQLAuto 新增支持 Document.sqlauto 中的 ${var} 来匹配传参 SQL 中的 ?
1 parent 7677158 commit f491b68

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/java/apijson/boot/DemoController.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,7 @@ public static void init(boolean shutdownWhenServerError, APIJSONCreator<?, ? ext
22512251
}
22522252

22532253
valuesMap.put(key, "?");
2254+
// 语法报错 sql = sql.replaceAll("\${" + key + "}", "?");
22542255
}
22552256

22562257
if (! valuesMap.isEmpty()) {

0 commit comments

Comments
 (0)