How to debug with H2
authorGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 28 Dec 2016 08:48:00 +0000 (09:48 +0100)
committerGustavo Martin Morcuende <gu.martinm@gmail.com>
Wed, 28 Dec 2016 08:48:00 +0000 (09:48 +0100)
SpringJava/Gradle/spring-jpa-persistence/src/integTest/resources/spring-configuration-h2-test/datasource-test-configuration.xml

index 7ec6b17..61d471c 100644 (file)
         -->\r
        <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">\r
                <property name="driverClassName" value="org.h2.Driver" />\r
+               \r
+               <!-- For debugging H2 use TRACE_LEVEL_SYSTEM_OUT=3 option :)\r
+               <property name="url" value="jdbc:h2:mem:mybatis_example;INIT=create schema if not exists mybatis_example\;SET SCHEMA mybatis_example;TRACE_LEVEL_SYSTEM_OUT=3;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" />\r
+               -->\r
                <property name="url" value="jdbc:h2:mem:mybatis_example;INIT=create schema if not exists mybatis_example\;SET SCHEMA mybatis_example;MODE=MySQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE" />\r
                <property name="username" value="mybatis" />\r
                <property name="password" value="" />\r