[Spring] Unable to determine Dialect to use [name=Oracle, majorVersion=12]
스프링 프로젝트 기동시 “Unable to determine Dialect to use [name=Oracle, majorVersion=12]” 오류가 나는 경우.
정확하게는 스프링 오류가 아니라 하이버네이트 오류.
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ’em’ defined in file [C:\[특정폴더경로]\context-transaction.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: Unable to build EntityManagerFactory
(중략)
Caused by: javax.persistence.PersistenceException: Unable to build EntityManagerFactory
(중략)
Caused by: org.hibernate.HibernateException: Unable to determine Dialect to use [name=Oracle, majorVersion=12]; user must register resolver or explicitly set ‘hibernate.dialect’
이 때 context-transaction.xml 파일 내의 hibernate.dialect 값을 org.hibernate.dialect.Oracle10gDialect 로 변경 후 재기동해보니 잘 된다.
참고링크 : https://stackoverflow.com/questions/41323894/hibernate-cannot-determine-dialect