-
spring boot : table doesn't exist 에러백엔드/spring 2023. 2. 16. 17:50
data.sql 파일을 intellij datagrip 을 통해 넣으려 했으나,
table 이 존재하지 않는다는 에러만 돌아올 뿐이었다.
분명이, ddl-auto 도 create 로 설정했는데, 되지 않아 이것저것 3시간 가량 찾아봤지만 되지 않았다.
jpa: hibernate: ddl-auto: update database-platform: org.hibernate.dialect.MySQL5Dialect
update 로 바꿔도 보고
https://twoicefish-secu.tistory.com/405 을 참고해 여러 가지를 넣어봤다.
그런데, 생각해보니 service, application 자체를 작동시키지 않은 채 query를 실행하고 있었던 것이다.
application 을 실행하자 마자 잘 작동했다..
'백엔드 > spring' 카테고리의 다른 글
spring boot 3.0.2: security 구현 (0) 2023.02.18 Spring boot : Error executing DDL "create index 에러 해결 (0) 2023.02.16 spring boot - thymeleaf layout dialect 적용 (0) 2023.02.16 spring boot template 파일 내 html 파일 인식 에러 문제 (0) 2023.02.14 CRUD Repository 와 Optional 그리고 dto (0) 2023.02.13