H2 Database not found error: 90146. H2 database is not created on start

后端 未结 8 1728
无人及你
无人及你 2021-01-19 01:55

Just created a simple spring-boot project from the spring initializer. I went to add a local h2 db for testing and am unable to login. Seems that it cannot create the test d

8条回答
  •  無奈伤痛
    2021-01-19 02:41

    I have the same problem with windows. I just change spring.datasource.url in application property file to jdbc:h2:file:C:/data/sample and run project. after that set JDBC URL to jdbc:h2:file:C:/data/sample. look like picture JDBC URL

提交回复
热议问题