小功能修改

This commit is contained in:
zhangdaiscott
2023-12-29 19:41:44 +08:00
parent cfeb81ee1e
commit 69287a772b
66 changed files with 910 additions and 172 deletions

View File

@ -44,5 +44,12 @@ public class TestStr {
valArray.add("qwe");
System.out.println("值: " + StringUtils.join(valArray, ","));
}
@Test
public void testSql() {
String sql = "select * from sys_user where sex = ${sex}";
sql = sql.replaceAll("'?\\$\\{sex}'?","1");
System.out.println(sql);
}
}