ERROR 5212 --- [ main] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: 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)
...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] due to: 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)
분명 방금 전까지 잘됐는데..
갑자기 에러 남 ; 말이 안되는데 ..
원인 !
- AWS RDS 배포하면서 url 형식을 잘못 기입했다.
-> jdbc:mysql://[RDS엔드포인트]:3306/[DB명]?serverTimezone=Asia/Seoul&characterEncoding=UTF-8
--> 배포 버전은 잘 동작했는데 로컬에서는 여전히 안돌아가서 의존성을 추가해줬다.
⬇️ build.gradle
...
dependencies {
...
// entityManagerFactory
implementation group: 'org.javassist', name: 'javassist', version: '3.15.0-GA'
}
...
⬇️ 이 분이 알려줌