View content of embedded H2 database started by Spring
Pretty much the same question as View content of H2 or HSQLDB in-memory database. Simply add the following to your configuration. <bean id=”h2Server” class=”org.h2.tools.Server” factory-method=”createTcpServer” init-method=”start” destroy-method=”stop” depends-on=”h2WebServer”> <constructor-arg value=”-tcp,-tcpAllowOthers,-tcpPort,9092″/> </bean> <bean id=”h2WebServer” class=”org.h2.tools.Server” factory-method=”createWebServer” init-method=”start” destroy-method=”stop”> <constructor-arg value=”-web,-webAllowOthers,-webPort,8082″/> </bean> This will start both H2 web console and TCP server in the same JVM as … Read more