spring:
h2:
console:
enabled: true
path: /h2
datasource:
url: jdbc:h2:mem:test
jpa:
hibernate:
ddl-auto: create
show-sql: true
h2.console.enabled: true
: H2 데이터베이스 콘솔을 활성화한다h2.console.path: /h2
: H2 데이터베이스 콘솔에 접근할 수 있는 경로를 **/h2
**로 설정한다datasource.url: jdbc:h2:mem:test
: H2 데이터베이스를 메모리에 생성하고, 데이터베이스 이름을 **test
**로 설정한다jpa.hibernate.ddl-auto: create
: 애플리케이션 시작 시 JPA가 엔티티 클래스를 분석하여 데이터베이스 스키마를 자동으로 생성한다jpa.show-sql: true
: JPA가 생성한 SQL 쿼리를 콘솔에 출력한다