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

后端 未结 8 1729
无人及你
无人及你 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:29

    In earlier version of spring, default url will be jdbc:h2:mem:testdb and testdb was created by default. from 2.3.0 onwards, if url is not mentioned it will auto generate database name. auto generated database name can be found in the spring logs.

提交回复
热议问题