Reputation: 71
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?
Upvotes: 4
Views: 9573
Reputation: 2644
for properties and yml use the following (application.yml)
spring:
h2:
console:
enabled: true
(application.properties)
spring.h2.console.enabled = true
Upvotes: 2
Reputation: 15878
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
Upvotes: 9
Reputation: 991
you need to use this structure
###
# H2 Settings
###
h2:
console:
enabled: true
path: /console
settings:
trace: false
web-allow-others: false
Upvotes: 1