View content of embedded H2 database started by Spring

前端 未结 7 1034
忘掉有多难
忘掉有多难 2020-12-04 09:53

I would like to view in a web browser the content of the H2 database started by Spring thanks to the following configuration:



        
7条回答
  •  半阙折子戏
    2020-12-04 10:24

    When you use the an embeddeb with the xml jdbc configuration the default name of the database is 'testdb'

    Try to use in your url connection:

    jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1
    

提交回复
热议问题