Default url and credentials for H2DB?
问题 I have added H2DB in my springBoot application for unit testing purpose. In application-test.properties I just added: spring.datasource.name = h2db spring.h2.console.enabled = true Its working fine, saving the values. But how it is working and how can I browse this DB? 回答1: Default properties for H2 in Spring Boot application are: spring.datasource.url=jdbc:h2:mem:testdb spring.datasource.driverClassName=org.h2.Driver spring.datasource.username=sa spring.datasource.password= spring.jpa