How to enable h2 console in spring boot application?

Опубликовано: 23 Февраль 2026
на канале: PAONLINE
19,930
82

Hi friends,




Today we will see,




How to enable h2 console in spring boot applicaton??




h2-console is a inline database,using this we can database operations..like mysql,oracle,etc...




we have to select h2 database dependency for h2 console.




in application.properties file,


we have to add the below code..




server.port=7086
spring.h2.console.enabled=true
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=create


so h2 console is enabled...




In next video we will see how to connect and create tables in h2 console..




thank u guys....