Database 在JBoss EAP 6.2中查看内存数据库中H2的内容

Database 在JBoss EAP 6.2中查看内存数据库中H2的内容,database,web,jboss,h2,jboss-eap-6,Database,Web,Jboss,H2,Jboss Eap 6,我的web应用程序运行在jboss eap 6.2上,并将数据存储到h2 im内存数据库中 这是jboss的standalone.xml中的数据源配置: <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true"> <connection-url>jdbc:h

我的web应用程序运行在jboss eap 6.2上,并将数据存储到h2 im内存数据库中

这是jboss的standalone.xml中的数据源配置:

        <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
            <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
            <driver>h2</driver>
            <security>
                <user-name>sa</user-name>
                <password>sa</password>
            </security>
        </datasource>

谢谢大家!

是的,我将“hibernate.hbm2ddl.auto”设置为“createdrop”。当我连接到mysql时,仍然可以
mvn archetype:generate -DarchetypeGroupId=org.jboss.aerogear.archetypes -DarchetypeArtifactId=jboss-html5-mobile-archetype -DarchetypeVersion=7.1.3.CR6 -Denterprise=true