728x90
728x90
[SpringBoot] org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "drop table if exists user cascade " via JDBC [Syntax error in SQL statement "drop table if exists [*]user cascade "; expected "identifier";]
트러블슈팅2023. 7. 16. 10:09[SpringBoot] org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "drop table if exists user cascade " via JDBC [Syntax error in SQL statement "drop table if exists [*]user cascade "; expected "identifier";]

에러 메세지 org.hibernate.tool.schema.spi.CommandAcceptanceException: Error executing DDL "drop table if exists user cascade " via JDBC [Syntax error in SQL statement "drop table if exists [*]user cascade "; expected "identifier";] 원인 테스트 코드 공부를 마치고, 적용을 위해 토이 프로젝트를 진행하다 처음 마주친 에러이다. 에러 상황은 회원가입 시 User Entity에서 Repository를 통해 save할 때 발생하였으며 RED 상황이 아닌 hibernate에서 정말 에러를 뱉어내고 있었다. 테스트 로직은 아래처럼, RED 상황..

728x90
728x90
image