반응형 SMALL H21 H2, MySQL, PostgreSQL 연동 H2 Database 연동특징메모리 기반 가볍고 빠름별도 설치 필요 없음개발/테스트용으로 최적화의존성 추가 (build.gradle)implementation 'com.h2database:h2'application.yml 설정spring: datasource: url: jdbc:h2:mem:testdb driver-class-name: org.h2.Driver username: sa password: jpa: hibernate: ddl-auto: update show-sql: true# 콘솔에서 확인용spring.h2.console.enabled: true 브라우저에서 http://localhost:8080/h2-console 접속→ JDBC URL에 jdbc.. 2025. 4. 14. 이전 1 다음 LIST