Add some scaffolding.
This commit is contained in:
15
src/main/resources/application-postgres.yml
Normal file
15
src/main/resources/application-postgres.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: ${DATASOURCE_URL:jdbc:postgresql://localhost:5432/notesvault}
|
||||
driver-class-name: org.postgresql.Driver
|
||||
username: ${DATASOURCE_USERNAME:notesvault}
|
||||
password: ${DATASOURCE_PASSWORD:notesvault}
|
||||
jpa:
|
||||
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
||||
hibernate:
|
||||
ddl-auto: validate
|
||||
flyway:
|
||||
locations: classpath:db/migration
|
||||
h2:
|
||||
console:
|
||||
enabled: false
|
||||
31
src/main/resources/application.yml
Normal file
31
src/main/resources/application.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
spring:
|
||||
datasource:
|
||||
url: jdbc:h2:mem:notesvault;DB_CLOSE_DELAY=-1;MODE=PostgreSQL;NON_KEYWORDS=VALUE
|
||||
driver-class-name: org.h2.Driver
|
||||
username: sa
|
||||
password: ""
|
||||
jpa:
|
||||
database-platform: org.hibernate.dialect.H2Dialect
|
||||
hibernate:
|
||||
ddl-auto: validate
|
||||
open-in-view: false
|
||||
flyway:
|
||||
locations: classpath:db/migration
|
||||
h2:
|
||||
console:
|
||||
enabled: false
|
||||
|
||||
app:
|
||||
jwt:
|
||||
secret: ${JWT_SECRET:dev-secret-change-me-do-not-use-in-production}
|
||||
expiration-seconds: 86400
|
||||
|
||||
---
|
||||
spring:
|
||||
config:
|
||||
activate:
|
||||
on-profile: dev
|
||||
h2:
|
||||
console:
|
||||
enabled: true
|
||||
path: /h2-console
|
||||
Reference in New Issue
Block a user