In this video you will get how you can configure H2 databse in Microservices using spring boot applications for doing that you need to use below configuration in pom.xml and property file
application.property file will have
#Database configuration
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.jpa.show-sql=true
for pom.xml we have details in video as well .