I am getting error after opening the h2 database console. I enter database name but it is showing database not found error:
Database \"C:/Users/Barlek
Problem:
Database not found or test folder not in c:/user/username/test
Copy&paste it in application.properties file:
spring.datasource.url=jdbc:h2:~/test
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
Issue was of URL, check it. Problem solved.