spring-graphql-demo/dgs-graphql/src/main/resources/application.yml

36 lines
834 B
YAML
Raw Normal View History

2021-08-07 09:21:08 +07:00
server:
port: 8081
# 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}
driver-class-name: org.postgresql.Driver
jpa:
database: postgresql
database-platform: org.hibernate.dialect.PostgreSQLDialect
hibernate:
ddl-auto: ${HIBERNATE_DDL:update}
show-sql: ${JPA_SHOW_SQL:true}
properties:
hibernate:
enable_lazy_load_no_trans: ${HIBERNATE_LAZY_NO_TRANS:true}
main:
allow-bean-definition-overriding: true
# Spring Boot Actuator
management:
endpoints:
web:
exposure:
include: health,info,metrics
# DGS GraphQL
dgs:
graphql:
graphiql:
2023-01-20 16:09:37 +07:00
enabled: true
path: /graphiql