Run h2 in daemon mode (#6446)

refactor-ui
Wenjun Ruan 2021-10-06 10:15:36 +08:00 committed by GitHub
parent 4fbee7dc4b
commit 6529f92883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);