H2 Database
- 스프링 부트가 지원하는 인메모리 DB
- JDBC API
- embedded, server, in-memory 모드 지원
- 브라우저 콘솔 지원(h2-console)
- 의존성 추가해서 사용
runtimeOnly 'com.h2database:h2'
- h2 console
spring.h2.console.enabled=true
spring.datasource.url=jdbc:h2:mem:testdb
'개발 > Spring' 카테고리의 다른 글
DataSource, TransactionManager (1) | 2024.02.27 |
---|---|
Spring Data JPA 인터페이스 (0) | 2024.02.27 |
Hibernate, Spring Data JPA (0) | 2024.02.26 |
MyBatis, JdbcTemplate (0) | 2024.02.26 |
ORM, JPA, JPQL (0) | 2024.02.26 |