-
h2 - 데이터 베이스 연결스프링 2024. 10. 23. 17:57
cmd창에서
1. h2폴더에 진입,
2. bin 폴더에 진입,
3. ./h2.sh 명령어로 h2실행
4. 프로젝트 properties 작성
spring.jpa.hibernate.ddl-auto=create spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.datasource.username=sa spring.datasource.driver-class-name=org.h2.Driver spring.datasource.url=jdbc:h2:tcp://localhost/~/test5. 웹으로 H2에 접속 (H2 Console클릭)

6. 웹으로 H2 Console에 접속후 연결

h2데이터 베이스