jdbc 설정을 하는 김에 JPA또한 설정후 활용해보기로 하였다.
spring:
datasource:
driver-class-name: org.mariadb.jdbc.Driver
url: "jdbc:mariadb://localhost:3306/swtdodo?autoReconnect=true&&useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC&tinyInt1isBit=false"
username:
password:
hikari:
auto-commit: false
connection-test-query: SELECT 1
minimum-idle: 10
maximum-pool-size: 20
transaction-isolation: TRANSACTION_READ_UNCOMMITTED
pool-name: pool-swtodo
jpa:
database-platform: org.hibernate.dialect.MariaDB103Dialect
properties:
hibernate:
format_sql: true
hbm2ddl.auto: update
implicit_naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
physical_naming_strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
open-in-view: false
show-sql: true
출처