diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index 37506cb..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -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 \ No newline at end of file diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..b8d9565 --- /dev/null +++ b/src/main/resources/application.yml @@ -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