Newer
Older
genealogy / src / main / resources / application.yml
spring:
  application:
    name: genealogy

  # ???????????? ???? ?????? postgres (??? ??????????)
  datasource:
    url: "jdbc:postgresql://${DB_HOST:localhost}:${DB_PORT:5439}/${DB_DATABASE:genealogy}"
    username: postgres
    password: postgres
    driver-class-name: org.postgresql.Driver
  jpa:
    database-platform: org.hibernate.dialect.PostgreSQLDialect
    hibernate:
      ddl-auto: update

  # ???????????? JPA
#  jpa:
#    database-platform: org.hibernate.dialect.H2Dialect
#    hibernate:
#      ddl-auto: create-drop
#    show-sql: true
#    properties:
#      hibernate:
#        format_sql: true
#        dialect: org.hibernate.dialect.H2Dialect

  # ???????????? Thymeleaf
  thymeleaf:
    cache: false
    prefix: classpath:/templates/
    suffix: .html
    mode: HTML
    encoding: UTF-8
    servlet:
      content-type: text/html

  # ???????????? ???-??????????
  web:
    resources:
      static-locations: classpath:/static/

# ????????? ???????????
logging:
  level:
    com.example.familytree: DEBUG
    org.hibernate.SQL: DEBUG
    org.hibernate.type.descriptor.sql.BasicBinder: TRACE

# ????????? ????????? ??????????
app:
  title: "??????????????? ????? ?????"
  version: "1.0.0"