Run h2 in daemon mode (#6446)

This commit is contained in:
Wenjun Ruan 2021-10-06 10:15:36 +08:00 committed by lenboo
parent c99ad738c0
commit e5cdd8bd27
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ public class StandaloneServer {
System.setProperty(SPRING_DATASOURCE_USERNAME, "sa");
System.setProperty(SPRING_DATASOURCE_PASSWORD, "");
Server.createTcpServer("-ifNotExists").start();
Server.createTcpServer("-ifNotExists", "-tcpDaemon").start();
final DataSource ds = ConnectionFactory.getInstance().getDataSource();
final ScriptRunner runner = new ScriptRunner(ds.getConnection(), true, true);