오늘은 어제보다 나아지길
[Spring boot] Spring boot Jpa H2 설정하기 (2) 본문
이번엔 H2를 연동해보려 한다.
h2는 인메모리DB 이면서 자바가 설치가 되어 있어야 동작한다.
기존 오라클, mysql는 컴퓨터 종료 시 데이터가 날라가지 않지만
인메모리DB는 데이터가 날라간다는 차이점이 있다.
대신 속도는 빠르고 가볍다는 장점이 있다...!
그러기에 테스트용이나 혼자 공부할 시 최적의 DB이다
www.h2database.com/html/main.html
H2 Database Engine
H2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small footprint: around 2 MB jar file size Suppor
www.h2database.com
여길 통해 다운 받으면 되고 All platform을 다운받고 압출을 풀면 성공
application.properties에 디비 정보를 세팅 후
localhost:8080/h2-console로 접속하면
디비도 연동이 되었다.
'[Spring boot]' 카테고리의 다른 글
[Spring boot] Spring boot Jpa H2 설정하기 (4) (0) | 2021.01.20 |
---|---|
[Spring boot] Srping boot Jpa H2 설정하기 (3) (0) | 2021.01.15 |
[Spring boot] Spring boot Jpa H2 설정하기 (1) (0) | 2021.01.15 |
Comments