提交 27e69375 编写于 作者: Z zyyang

change

上级 c835f84f
......@@ -4,7 +4,7 @@ import com.taosdata.taosdemo.utils.TimeStampUtil;
public final class JdbcTaosdemoConfig {
// instance
public String host = "master"; //host
public String host; //host
public int port = 6030; //port
public String user = "root"; //user
public String password = "taosdata"; //password
......
......@@ -33,6 +33,11 @@ public class SubTableService extends AbstractService {
executor.execute(() -> createSubTable(superTableMeta, prefixOfTable + (tableIndex + 1)));
}
executor.shutdown();
try {
executor.awaitTermination(Long.MAX_VALUE,TimeUnit.NANOSECONDS);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public void createSubTable(SuperTableMeta superTableMeta, String tableName) {
......
......@@ -16,6 +16,6 @@ spring.datasource.password=taosdata
#logging.level.com.taosdata.taosdemo.dao=error
jdbc.driver=com.taosdata.jdbc.rs.RestfulDriver
hikari.maximum-pool-size=500
hikari.minimum-idle=100
hikari.maximum-pool-size=1
hikari.minimum-idle=1
hikari.max-lifetime=0
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册