H2 Console Cant see tables created by JAVA

后端 未结 7 1857
北海茫月
北海茫月 2021-02-02 11:18

I have downloaded the H2 console from http://www.h2database.com/html/download.html
and I have configured the URL in my jdbc.properties file
to jdbc:h2

7条回答
  •  清歌不尽
    2021-02-02 11:58

    I have used the below and I see my table get created.


    spring.datasource.url=jdbc:h2:mem:testdb;DB_CLOSE_ON_EXIT=FALSE
    spring.h2.console.enabled=true
    spring.h2.console.path=/h2console
    spring.datasource.username=sa
    spring.datasource.password=
    spring.datasource.driverClassName=org.h2.Driver
    spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
    

提交回复
热议问题