Dev_Log

[JPA] Unable to determine Dialect without JDBC metadata

LeeDaniel 2024. 12. 2. 15:15
 [ 에러 ] 
Caused by: org.hibernate.HibernateException:
Unable to determine Dialect without JDBC metadata
(please set 'jakarta.persistence.jdbc.url' for common cases or 'hibernate.dialect' when a custom Dialect implementation must be provided)

 

 [ Solution ]
application.yml에 jpa의 dialect설정 추가

spring:
  datasource:
    url: jdbc:mysql://localhost:3306/your_database
    username: your_username
    password: your_password
    driver-class-name: com.mysql.cj.jdbc.Driver
  jpa:
    properties:
      hibernate:
        dialect: org.hibernate.dialect.MySQL8Dialect

 

// Java SSL인증서 등록된 목록 확인하기
keytool -keystore "JAVA Home경로의 /jre/lib/security/cacerts"  -storepass changeit -list -v

 

반응형