gradle
runtimeOnly 'com.h2database:h2'
yml
spring:
datasource:
url: jdbc:h2:mem:test
username: sa
password:
driver-class-name: org.h2.Driver
jpa:
hibernate:
ddl-auto: create
properties:
hibernate:
format_sql: true
logging:
level:
org.hibernate.SQL: debug
localhost:${스프링부트 포트}/h2-console
'데이터베이스' 카테고리의 다른 글
[mysql] concat 사용 시 null이 들어갈때 ifnull 사용법 (0) | 2022.08.18 |
---|---|
[mysql] UPDATE문 서브쿼리(select 결과) 사용법 (0) | 2022.08.18 |