mirror of
https://github.com/Dannecron/spring-boot-demo.git
synced 2025-12-26 00:32:34 +03:00
init service: base structure, some api-methods, migrations
This commit is contained in:
16
src/main/resources/application.yml
Normal file
16
src/main/resources/application.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
spring:
|
||||
application:
|
||||
name: Demo
|
||||
datasource:
|
||||
url: jdbc:postgresql://localhost:5432/demo?currentSchema=demo
|
||||
username: postgres
|
||||
password: postgres
|
||||
driver-class-name: org.postgresql.Driver
|
||||
hikari:
|
||||
schema: demo
|
||||
flyway: #flyway automatically uses the datasource from the application to connect to the DB
|
||||
enabled: true # enables flyway database migration
|
||||
locations: classpath:db/migration/structure, classpath:db/migration/data # the location where flyway should look for migration scripts
|
||||
validate-on-migrate: true
|
||||
default-schema: demo
|
||||
Reference in New Issue
Block a user