How to add the mode=mysql to embedded H2 DB in Spring Boot 1.4.1 for @DataJpaTest?
问题 I have some problems with using a schema.sql file to create my sql schema when executing a junit test while this schema contains mysql specific expression. I have to add the mode=mysql to the H2 url. For example something like this: jdbc:h2:mem:testd;MODE=MYSQL But Spring boot automatically uses the url defined in the enum org.springframework.boot.autoconfigure.jdbc.EmbeddedDatabaseConnection with its url jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE . I have tried similiar