H2

Database

[H2 DB] 인메모리 방식 연결 방법 (미설치)

1. appliication.yml 파일에 아래와 같이 데이터소스 설정 spring: datasource: url: jdbc:h2:mem:test username: sa password: driverClassName: org.h2.Driver (application.properties) spring.datasource.driver-class-name=org.h2.Driver spring.datasource.url=jdbc:h2:mem:test spring.datasource.username=sa spring.datasource.password= 2. 서버 구동 후 로그 확인 /h2-console url로 db 접근 가능 3. localhost:8080/h2-console 접근 설정한 url로 JDBC U..

Database

[DB] H2 데이터베이스 설치하고 시작하기

H2 데이터베이스 사이트 https://www.h2database.com 1. 홈페이지 - Download - All Downloads - Archive Downloads 2. spring project의 H2 라이브러리와 버전 맞추기 2.1.214 인것을 확인할 수 있다 3. 윈도우의 경우 설치 후 h2.bat or h2w.bat 실행 4. h2 console이 뜨면 완료 최초 한번 : jdbc:h2:~/test 이후부터는 jdbc:h2:tcp://localhost/~/test로 접속 C - 사용자 - user - test.mv.db 파일 생성 확인

HSRyuuu
'H2' 태그의 글 목록