[SpringBoot][오류]Dialect 오류

진서형·2024년 8월 8일

Spring Boot JPA 설정 오류 해결: Hibernate Dialect 문제

❗문제 개요

  • Spring Boot 애플리케이션을 실행할 때 다음과 같은 오류 발생
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)

EntityManagerFactory를 생성하는 과정에서 Hibernate가 데이터베이스 Dialect를 결정할 수 없다

✔️ 원인 분석

✔️ Dialect 설정이 누락되었거나 잘못된 경우 발생

✒️ 문제 해결

application.properties - spring.datasource.password=비밀번호
비밀번호 뒤 공백 제거

0개의 댓글