diff --git a/examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleStarter.java b/examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleConfiguration.java similarity index 92% rename from examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleStarter.java rename to examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleConfiguration.java index 63e7e5be..120d89d6 100644 --- a/examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleStarter.java +++ b/examples/boot-api/src/main/java/org/springside/examples/bootapi/config/H2ConsoleConfiguration.java @@ -15,7 +15,7 @@ import org.springframework.context.annotation.Profile; */ @Configuration @Profile(Profiles.NOT_PRODUCTION) -public class H2ConsoleStarter implements ServletContextInitializer { +public class H2ConsoleConfiguration implements ServletContextInitializer { @Override public void onStartup(ServletContext servletContext) throws ServletException { diff --git a/support/h2/.h2.server.properties b/support/h2/.h2.server.properties new file mode 100644 index 00000000..5b0f3eb0 --- /dev/null +++ b/support/h2/.h2.server.properties @@ -0,0 +1,8 @@ +#H2 Server Properties +#Sun Nov 08 17:40:21 CST 2015 +0=Generic H2 (Server)|org.h2.Driver|jdbc\:h2\:tcp\://localhost/~/test|sa +1=Generic H2 (Embedded)|org.h2.Driver|jdbc\:h2\:mem\:testdb|sa +2=H2 Boot API DB|org.h2.Driver|jdbc\:h2\:file\:~/.h2/bootapi;AUTO_SERVER\=TRUE;DB_CLOSE_DELAY\=-1;|sa +webAllowOthers=false +webPort=8090 +webSSL=false diff --git a/support/h2/pom.xml b/support/h2/pom.xml index 1d5a31f4..6837b9a0 100644 --- a/support/h2/pom.xml +++ b/support/h2/pom.xml @@ -36,6 +36,8 @@ -webPort 8090 -browser + -properties + .