📝ERROR NOTE/SPRINGBOOT

[SpringBoot] could not prepare statement; SQL; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement 에러 해결

coldNoodlePigeon 2023. 9. 28.

강의를 따라 테스트 코드를 실행하는 중 위와 같은 에러가 발생했다. 

스프링 프레임워크에서 JPA ORM으로 사용했을 때 발생할 수 있는 에러로 다양한 원인이 있을 수 있다고 했다. 

 

나는 application.yml 파일에서 띄어쓰기가 이상하게 되어있어서 발생했던 문제였다. 띄어쓰기를 제대로 수정해주었더니 에러가 사라졌다. 

 

https://kth990303.tistory.com/423

 

[ERROR] JPA initializationError 해결 방법 모음 및 대처법

스프링 프레임워크에서 JPA ORM을 이용하면 반드시 한 번쯤은 만날 수밖에 없는 에러가 있다. could not prepare statement; SQL; nested exception is org.hibernate.exception.SQLGrammarException: could not prepare statement org.spr

kth990303.tistory.com

위의 블로그 글을 참고하여 해결할 수 있었다. 다른 해결방법들도 위 블로그 링크에 존재한다. 

댓글