How to access h2 console?

I have created sping application using camunda spring initializr.
I can access it at localhost:8081/camunda.

This is my application.yaml::

spring.datasource.url: jdbc:h2:file:./camunda-h2-database
server.port: 8081

camunda.bpm.admin-user:
id: admin
password: admin

How to access h2 console?
localhost:8081/h2 doesn’t work?

Use below changes and try
spring:
datasource:
url: jdbc:h2:file:./camunda-h2-database
driver-class-name: org.h2.Driver
username: sa
password:
h2:
console:
enabled: true
server:
port: 8081

he H2 console should typically be disabled in production environments or protected using proper authentication.
try hitting this again http://localhost:8081/h2-console

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.