2021-08-07 09:21:08 +07:00
|
|
|
server:
|
|
|
|
port: 8081
|
|
|
|
|
2021-08-07 10:27:34 +07:00
|
|
|
# Spring Boot
|
2021-08-07 09:21:08 +07:00
|
|
|
spring:
|
2022-05-27 12:30:12 +07:00
|
|
|
profiles:
|
|
|
|
active: ${APP_PROFILE:}
|
2021-08-07 09:21:08 +07:00
|
|
|
datasource:
|
2021-08-07 10:33:39 +07:00
|
|
|
url: jdbc:postgresql://${DB_HOST:localhost}:5432/${DB_NAME:graphql-demo}
|
2021-08-07 10:32:38 +07:00
|
|
|
username: ${DB_USER:your-username}
|
2021-08-07 10:33:39 +07:00
|
|
|
password: ${DB_PASSWORD:your-password}
|
2021-08-07 10:27:34 +07:00
|
|
|
driver-class-name: org.postgresql.Driver
|
2021-08-07 10:51:56 +07:00
|
|
|
jpa:
|
2021-08-07 12:20:52 +07:00
|
|
|
database: postgresql
|
|
|
|
database-platform: org.hibernate.dialect.PostgreSQLDialect
|
2021-08-07 10:51:56 +07:00
|
|
|
hibernate:
|
2021-08-07 12:20:52 +07:00
|
|
|
ddl-auto: ${HIBERNATE_DDL:update}
|
|
|
|
show-sql: ${JPA_SHOW_SQL:true}
|
|
|
|
properties:
|
|
|
|
hibernate:
|
|
|
|
enable_lazy_load_no_trans: ${HIBERNATE_LAZY_NO_TRANS:true}
|
2021-08-07 19:56:39 +07:00
|
|
|
main:
|
|
|
|
allow-bean-definition-overriding: true
|
2021-08-07 10:27:34 +07:00
|
|
|
# Spring Boot Actuator
|
|
|
|
management:
|
|
|
|
endpoints:
|
|
|
|
web:
|
|
|
|
exposure:
|
|
|
|
include: health,info,metrics
|
|
|
|
|
2021-08-07 19:56:39 +07:00
|
|
|
# DGS GraphQL
|
|
|
|
dgs:
|
|
|
|
graphql:
|
|
|
|
graphiql:
|
|
|
|
enabled: true
|