I have an application.yml file where I want to enable h2-console but on searching over google I got results only for application.properties file. Can anyone help?
You can use below configuration.
spring:
h2:
console:
enabled: true
path: /h2-console
Refer this for more : https://github.com/khoubyari/spring-boot-rest-example/blob/master/src/main/resources/application.yml
AND
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-sql-h2-console
you need to use this structure
###
# H2 Settings
###
h2:
console:
enabled: true
path: /console
settings:
trace: false
web-allow-others: false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With