[ERROR] Table 'DBNAME.hibernate_sequence' doesn't exist

gnoesnooj·2022년 5월 1일
0

배경

배포 과정중 위와 같은 에러를 만나게 되었다.

해결

찾아보니 id 값의 생성 전략을 auto 로 해놨기 때문이라고 하는데...

identity 로 변경해주면 해결된다고 한다.

(+) auto로 그냥 두고,
spring.jpa.hibernate.use-new-id-generator-mappings= false 를 추가해주어도 해결된다.

참조 : https://mkyong.com/spring-boot/spring-boot-mysql-table-db_name-hibernate_sequence-doesnt-exist/

profile
누구나 믿을 수 있는 개발자가 되자 !

0개의 댓글