코딍코딍
코딩기록
코딍코딍
전체 방문자
오늘
어제
  • 분류 전체보기 (271)
    • 개발 (2)
    • Java (1)
    • 스프링 (28)
    • JPA (11)
    • Git (3)
    • 알고리즘 (160)
      • 백준 (132)
      • 프로그래머스 (8)
      • SWEA (20)
    • 토이 프로젝트 (14)
      • 간단한 Springboot CRUD (1)
      • 게시판 프로젝트 (13)
    • 알고리즘 개념정리 (8)
    • 오류 해결 (13)
    • 보류 (0)
    • AWS (5)
    • 트러블 슈팅 (0)
    • 회고 (3)
    • CS (4)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

최근 글

티스토리

hELLO · Designed By 정상우.
코딍코딍

코딩기록

오류 해결

[Spring] ddl-auto: create 안 됨

2023. 10. 24. 13:02

상황

1달전에 개발한 프로젝트를 깃허브에서 clone받아 다시 실행시켜 보았다.

실행은 성공적으로 잘 실행되지만 기존 테이블 삭제 후 생성 작업이 실행되지 않았다.

 

해결

spring:
  jpa:
    show-sql: true
    database-platform: org.hibernate.dialect.H2Dialect
    properties:
      hibernate:
        format_sql: true
        show_sql: true
#        ddl-auto: create
        hbm2ddl.auto: create

ddl-auto: create를 주석처리하고 hbm2ddl.auto: create로 수정했다.

뭔 차이인지.. 모르겠다.

 


참고 자료

https://velog.io/@mingsound21/ERROR-SPRING-ddl-auto-update-%EC%95%88%EB%90%A8

 

[SPRING-ERROR] ddl-auto :update 안됨

ddl-auto : update 안되는 문제 해결

velog.io

 

'오류 해결' 카테고리의 다른 글

[Spring Data JPA] No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call 오류 해결  (0) 2023.04.19
[JPA] More than one row with the given identifier was found: 1  (0) 2023.03.11
[Mysql] Cannot delete or update a parent row  (0) 2023.02.28
Java Mysql 연동 시 오류 발생 : java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed  (0) 2023.02.13
java.lang.StackOverflowError: null - @Data  (0) 2023.01.11
    '오류 해결' 카테고리의 다른 글
    • [Spring Data JPA] No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call 오류 해결
    • [JPA] More than one row with the given identifier was found: 1
    • [Mysql] Cannot delete or update a parent row
    • Java Mysql 연동 시 오류 발생 : java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed
    코딍코딍
    코딍코딍
    ㅎ2

    티스토리툴바