improve H2 console

This commit is contained in:
calvin.xiao
2015-11-08 18:08:37 +08:00
parent 551de3b5f4
commit 3fdd6fe2f0
3 changed files with 11 additions and 1 deletions
@@ -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 {
+8
View File
@@ -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
+2
View File
@@ -36,6 +36,8 @@
<argument>-webPort</argument>
<argument>8090</argument>
<argument>-browser</argument>
<argument>-properties</argument>
<argument>.</argument>
</arguments>
</configuration>
</plugin>