spring-graphql-demo/dgs-graphql/src/main/resources/application.yml
2023-01-20 16:09:37 +07:00

36 lines
834 B
YAML

server:
port: 8081
# Spring Boot
spring:
profiles:
active: ${APP_PROFILE:}
datasource:
url: jdbc:postgresql://${DB_HOST:localhost}:5432/${DB_NAME:graphql-demo}
username: ${DB_USER:your-username}
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:
enabled: true
path: /graphiql