전공영역 공부 기록

JPA Mariadb 설정

악분 2021. 10. 12. 19:58
반응형
spring:
  datasource:
    url: jdbc:mariadb://<host>:<port>/<databasename>?useUnicode=yes&characterEncoding=UTF-8
    driver-class-name: org.mariadb.jdbc.Driver
    username: <username>
    password: <password>
  jpa:
    open-in-view: false
    generate-ddl: true
    show-sql: true
    hibernate:
      ddl-auto: update
      database-platform: org.hibernate.dialect.MariaDB103Dialect
반응형