diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java
index f7898d76494dd99f90fa667c166b079b6f5a5b03..e245c66fbe343b72c9c9d1cce120fa6851599218 100644
--- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java
+++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/components/TaosDemoCommandLineRunner.java
@@ -81,7 +81,7 @@ public class TaosDemoCommandLineRunner implements CommandLineRunner {
}
}
- private int insertTask(JdbcTaosdemoConfig config) {
+ private void insertTask(JdbcTaosdemoConfig config) {
int numOfThreadsForInsert = config.numOfThreadsForInsert;
int sleep = config.sleep;
if (config.autoCreateTable) {
diff --git a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml
index fd275bf216de4d832ec5ce3e7c2961444566c13a..2fb94e99b77623ab8731c03f398058dbdc459d07 100644
--- a/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml
+++ b/tests/examples/JDBC/taosdemo/src/main/java/com/taosdata/taosdemo/mapper/SubTableMapper.xml
@@ -7,7 +7,7 @@
CREATE table IF NOT EXISTS ${database}.${name} USING ${supertable} TAGS
- ${tag.value}
+ #{tag.value}
@@ -17,7 +17,7 @@
VALUES
- ${field.value}
+ #{field.value}
@@ -26,12 +26,12 @@
INSERT INTO ${database}.${name} USING ${supertable} TAGS
- ${tag.value}
+ #{tag.value}
VALUES
- ${field.value}
+ #{field.value}
@@ -48,7 +48,7 @@
VALUES
- ${field.value}
+ #{field.value}
@@ -60,12 +60,12 @@
${table.database}.${table.name} USING ${table.supertable} TAGS
- ${tag.value}
+ #{tag.value}
VALUES
- ${field.value}
+ #{field.value}