From 8acc6790b73f7349d4af2c929568800f35769dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=AF=BB?= Date: Thu, 10 Dec 2015 23:14:58 +0800 Subject: [PATCH] =?UTF-8?q?h2=E6=94=AF=E6=8C=81=E5=B7=A5=E5=85=B7=E5=8D=87?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- support/h2/README.txt | 6 +++++- support/h2/h2-console.bat | 1 + support/h2/h2-console.sh | 4 +++- support/h2/h2-server.bat | 1 + support/h2/h2-server.sh | 4 +++- support/h2/pom.xml | 6 +++--- 6 files changed, 16 insertions(+), 6 deletions(-) diff --git a/support/h2/README.txt b/support/h2/README.txt index e0dc0b1c02..9ba6b9494c 100644 --- a/support/h2/README.txt +++ b/support/h2/README.txt @@ -1 +1,5 @@ -Command to open a H2 web console or run a standalone H2 Database server. \ No newline at end of file +使用命令启动H2数据库服务,对应脚本: + +1. h2-console.[sh|bat] -> 启动H2数据库控制台, + 在JDBC URL中输入:jdbc:h2:file:~/kft-activiti-demo;AUTO_SERVER=TRUE 后可以连接DEMO的默认数据库 +2. h2-server.[sh|bat] -> 作为Server启动服务 \ No newline at end of file diff --git a/support/h2/h2-console.bat b/support/h2/h2-console.bat index 3f8fe4febb..d1efb7f12a 100644 --- a/support/h2/h2-console.bat +++ b/support/h2/h2-console.bat @@ -1,3 +1,4 @@ @echo off +cd %~dp0 call mvn exec:java -Ph2console pause \ No newline at end of file diff --git a/support/h2/h2-console.sh b/support/h2/h2-console.sh index f6395071dc..f3bbc8e4ab 100755 --- a/support/h2/h2-console.sh +++ b/support/h2/h2-console.sh @@ -1,2 +1,4 @@ #!/bin/bash -mvn exec:java -Ph2console +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +mvn exec:java -Ph2console \ No newline at end of file diff --git a/support/h2/h2-server.bat b/support/h2/h2-server.bat index 191b6e1e9c..d4a0b517a4 100644 --- a/support/h2/h2-server.bat +++ b/support/h2/h2-server.bat @@ -1,3 +1,4 @@ @echo off +cd %~dp0 call mvn exec:java -Ph2server pause \ No newline at end of file diff --git a/support/h2/h2-server.sh b/support/h2/h2-server.sh index 835e2c6ba4..0ec6c6c40f 100755 --- a/support/h2/h2-server.sh +++ b/support/h2/h2-server.sh @@ -1,2 +1,4 @@ #!/bin/bash -mvn exec:java -Ph2server +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +mvn exec:java -Ph2server \ No newline at end of file diff --git a/support/h2/pom.xml b/support/h2/pom.xml index 509ca71a65..3e4f9b66d4 100644 --- a/support/h2/pom.xml +++ b/support/h2/pom.xml @@ -12,7 +12,7 @@ com.h2database h2 - 1.3.173 + 1.4.180 runtime @@ -25,7 +25,7 @@ org.codehaus.mojo exec-maven-plugin - 1.2.1 + 1.4.0 @@ -52,7 +52,7 @@ org.codehaus.mojo exec-maven-plugin - 1.2.1 + 1.4.0