properties convert to yaml

This commit is contained in:
dzj 2024-01-18 17:43:16 +08:00
parent 01a473ed5a
commit 11df75dcf4
2 changed files with 29 additions and 27 deletions

View File

@ -1,27 +0,0 @@
# use the default server port
server.port=8080
# setup local h2 database config
spring.datasource.url=jdbc:h2:file:./data/demo
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=admin
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
# setup local h2 database console
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.h2.console.settings.web-allow-others=false
# update the schema when necessary
spring.jpa.hibernate.ddl-auto=create-drop
# togglz settings
togglz.enabled=true
togglz.console.enabled=true
togglz.console.path=/togglz-console
togglz.console.secured=false
# togglz feature flags
togglz.features.PRICE_INCREASE.enabled=false
togglz.features.DESCRIPTION_UPDATE.enabled=true

View File

@ -0,0 +1,29 @@
server:
port: 8080
spring:
datasource:
driverClassName: org.h2.Driver
password: password
url: jdbc:h2:file:./data/demo
username: admin
h2:
console:
enabled: true
path: /h2-console
settings:
web-allow-others: false
jpa:
database-platform: org.hibernate.dialect.H2Dialect
hibernate:
ddl-auto: create-drop
togglz:
console:
enabled: true
path: /togglz-console
secured: false
enabled: true
features:
DESCRIPTION_UPDATE:
enabled: true
PRICE_INCREASE:
enabled: false