Member-only story
How to access your H2 database from browser (Spring boot Application)
Sep 3, 2021
Step 1 — Run your Spring boot application
Step 2 -http://localhost:9001/h2-console/
port no- Application port no (9001)
Step 3- JDBC URL ,username and password application.yml or properties file
application.ymlserver:
port: 9001
spring:
application:
name: product-services
datasource:
driver-class-name: org.h2.Driver
password: password
url: "jdbc:h2:file:~/products;AUTO_SERVER=true"
username: root
h2:
console:
enabled: true
jpa:
databae-platform: org.hibernate.dialect.H2DDialect
hibernate:
ddl-auto: update