spring.jpa.hibernate.ddl-auto=create
애플리케이션을 실행하면, JPA/Hibernate가 테이블을 drop하고 다시 create해준다.
Property Name | Property 설명 |
---|---|
none | No action will be performed |
create-only | Database가 생성되기만 한다. |
drop | 데이터베이스 drop(이때, drop되면 데이터베이스 내용 모두 삭제) |
create | 데이터 베이스 drop하고 다시 생성 |
create-drop | 데이터 베이스 drop하고 다시 생성하되, 애플리케이션 종료하면 데이터 베이스 drop |
validate | Validate the database tabels schema |
update | 테이블 스키마 업데이트(가장 최근 코드로 테이블이 ALTER 되기 때문에 추천하지 않는 방법이다.) |