포트폴리오 (웹 개발)/계좌관리 웹애플리케이션
org.springframework.jdbc.BadSqlGrammarException
jihyeon33
2023. 6. 15. 01:36
에러:
Exception in thread "main" org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'connectdb.log' doesn't exist
원인: "Table ~~ doesn't exist" 문구를 통해 혹시..테이블이 없나?하여 해당 테이블을 select해봄. 테이블이 없었음. 이로인한 문제였음.
해결: 테이블 생성함. CREATE TABLE log(..생략..);