BeanCreationException error

Mixer·2024년 4월 3일
0

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)

application.yml 설정에 대한 문제로 BeanCreationException이 발생하는 경우, 주로 스프링 부트가 데이터베이스 연결을 올바르게 구성하지 못했거나 하이버네이트 설정에 문제가 있는 경우에 발생
제시한 오류 메시지를 바탕으로, 하이버네이트가 JDBC 메타데이터를 통해 데이터베이스 방언(Dialect)을 자동으로 식별하지 못하는 상황에선
hibernate.dialect 속성을 명시적으로 설정해야한다.

profile
Minthug'life

0개의 댓글