Database not found, and IFEXISTS=true, so we cant auto-create it

后端 未结 17 3029
不思量自难忘°
不思量自难忘° 2020-12-15 06:20

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

17条回答
  •  甜味超标
    2020-12-15 06:59

    Use a pre-2019 version of the H2 database dependency that auto-creates the database every time you run your standalone application. For example version 1.4.193. Your pom.xml should include this dependency:

    
            com.h2database
            h2
            1.4.193
    
    

提交回复
热议问题