코딩하는 둥둥

[ SpringBoot / ERROR] Failed to load ApplicationContext 본문

ERROR/JAVA

[ SpringBoot / ERROR] Failed to load ApplicationContext

둥둥 2022. 3. 10. 21:03
728x90

java.lang.IllegalStateException

: Failed to load ApplicationContext 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]


1. h2 데이터베이스를 서버 모드로 띄워두지 않았을 때 발생하는 오류이기때문에

h2데이터베이스가 실행되었는지 & localhost:8082로 서버에 잘 접속이 되는지 확인

 

2. application.yml의 spring > datasource > url에 ;MVCC=TRUE가 잘 제거되었는지 확인

※ ;MVCC=TRUE를 제거해줘야하는 이유는?

https://doongi9.tistory.com/entry/%EC%8A%A4%ED%94%84%EB%A7%81%EB%B6%80%ED%8A%B8%EC%99%80-JPA-%ED%99%9C%EC%9A%A9-1-%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%ED%99%98%EA%B2%BD%EC%84%A4%EC%A0%95-JPA%EC%99%80-DB-%EC%84%A4%EC%A0%95-%EB%8F%99%EC%9E%91%ED%99%95%EC%9D%B8

[ 참고 사이트 ]

1. https://www.inflearn.com/questions/127004

2. https://lightchan.tistory.com/157

728x90