From c79fa97c7af69dd913a1b1982b68e63798cf9b47 Mon Sep 17 00:00:00 2001 From: takezoe Date: Thu, 25 Apr 2013 18:23:36 +0900 Subject: [PATCH] Add h2 configuration to web.xml --- src/main/webapp/WEB-INF/web.xml | 59 ++++++++++++++++++++++++++++++--- 1 file changed, 54 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml index 5ee959c19..d2b646a72 100644 --- a/src/main/webapp/WEB-INF/web.xml +++ b/src/main/webapp/WEB-INF/web.xml @@ -4,11 +4,9 @@ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0"> - + + + org.scalatra.servlet.ScalatraListener @@ -33,4 +31,55 @@ /git/* + + + + + org.h2.server.web.DbStarter + + + + db.url + jdbc:h2:~/gitbucket/data + + + + db.user + sa + + + + db.password + sa + + + + db.tcpServer + -tcpAllowOthers + + + + + + + H2Console + org.h2.server.web.WebServlet + + 1 + + + + H2Console + /console/* + + \ No newline at end of file