인프런 커뮤니티 질문&답변
JPA쪽 강의에서 실행이 안됩니다
작성
·
676
0
첫 줄에 이렇게뜨고요
java.lang.IllegalStateException: Failed to load ApplicationContext
크게
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
이렇게 뜨고 엄청 길게 오류가 떠서 다 적지도못하겠네요..
현재 JPA쪽 강의 듣고있습니다. h2데이터베이스 넘어오면서부터 문제가 있는것 같아요..
퀴즈
순수 JDBC를 사용할 때, 데이터베이스 리소스(연결, Statement 등) 관리가 어려웠던 주된 이유는 무엇일까요?
SQL 쿼리를 직접 작성해야 해서
각 리소스를 사용 후 반드시 직접 닫아줘야 해서
테스트 간 데이터 독립성을 보장하기 어려워서
의존성 주입 설정이 복잡해서
답변 2
0





