반응형
SMALL
h2 database
-
1. JPA 프로젝트 생성하기 (intellij, gradle, h2 database)JAVA/JPA, QueryDSL 2022. 4. 22. 14:49
1. h2 database 다운로드 2. h2 database 설치 3. h2 database 실행 4. JPA 프로젝트 생성(클릭) 5. 프로젝트 다운로드 후 실행 6. application.properties 를 삭제하고 application.yaml을 생성후 내용 작성 spring: datasource: driver-class-name: org.h2.Driver username: sa password: url: jdbc:h2:tcp://localhost/~/test; jpa: show-sql: true open-in-view: false hibernate: ddl-auto: create naming: physical-strategy: org.hibernate.boot.model.naming.Came..