H2 Console Cant see tables created by JAVA

后端 未结 7 1853
北海茫月
北海茫月 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 12:04

    This is how you enable memory enable database using h2 module. You need to ensure the following things

    1. You had class that has @Entity annotations.
    2. you need to enable the following in application.properties file spring.h2.console.enabled=true
    3. Run Spring Boot and enter the following URL localhost:8080/h2-console
    4. This will show a connection screen. Enter the following changes in the JDBC URL: -> jdbc:h2:mem:testdb 5.Hit the connection button

    Salam

提交回复
热议问题