View content of embedded H2 database started by Spring

前端 未结 7 1041
忘掉有多难
忘掉有多难 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

    Pretty much the same question as View content of H2 or HSQLDB in-memory database.

    Simply add the following to your configuration.

    
        
    
    
        
    
    

    This will start both H2 web console and TCP server in the same JVM as your embedded database so that you can access port 8082 with your web browser (enter jdbc:h2:mem:dataSource as URL), or access port 9092 with external SQL client such as SQuirreLSQL and view the same data.

提交回复
热议问题